mirror of
https://github.com/Michatec/wk_wars2x.git
synced 2026-04-01 08:26:27 +02:00
Fast label now activates when fast speed is present
This commit is contained in:
@@ -208,6 +208,11 @@ function setAntennaMode( ant, mode )
|
||||
setLight( ant, "modes", "opp", mode == modes.opp );
|
||||
}
|
||||
|
||||
function setAntennaFastLabel( ant, state )
|
||||
{
|
||||
setLight( ant, "fast", "fastLabel", state );
|
||||
}
|
||||
|
||||
function setAntennaDirs( ant, dir, fastDir )
|
||||
{
|
||||
setLight( ant, "dirs", "fwd", dir == dirs.closing );
|
||||
@@ -229,6 +234,8 @@ function updateDisplays( ps, ants )
|
||||
e.targetSpeed.html( ants[ant][0].speed );
|
||||
e.fastSpeed.html( ants[ant][1].speed );
|
||||
|
||||
setAntennaFastLabel( ant, ants[ant][1].speed == "¦¦¦" ? false : true );
|
||||
|
||||
setAntennaDirs( ant, ants[ant][0].dir, ants[ant][1].dir );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user