Change plane color if we have not seen a recent position update
(previously, any type of message was enough).
This commit is contained in:
parent
55a10e6685
commit
0b5aac47c4
2 changed files with 4 additions and 2 deletions
public_html
|
@ -189,8 +189,8 @@ PlaneObject.prototype.updateIcon = function() {
|
|||
if (this.selected)
|
||||
col = SelectedColor;
|
||||
|
||||
// If we have not seen a recent update, change color
|
||||
if (this.seen > 15)
|
||||
// If we have not seen a recent position update, change color
|
||||
if (this.seen_pos > 15)
|
||||
col = StaleColor;
|
||||
|
||||
// If the squawk code is one of the international emergency codes,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue