Merge pull request #31310 from ShizCalev/lobby-timer-fix

Fixes lobby timer showing as delayed when it's just waiting for more players
This commit is contained in:
Jordan Brown
2017-10-05 10:21:14 -04:00
committed by CitadelStationBot
parent cf37555c4d
commit f91dc76e1a

View File

@@ -79,9 +79,12 @@
if(SSticker.current_state == GAME_STATE_PREGAME)
var/time_remaining = SSticker.GetTimeLeft()
if(time_remaining >= 0)
time_remaining /= 10
stat("Time To Start:", (time_remaining >= 0) ? "[round(time_remaining)]s" : "DELAYED")
if(time_remaining > 0)
stat("Time To Start:", "[round(time_remaining/10)]s")
else if(time_remaining == -10)
stat("Time To Start:", "DELAYED")
else
stat("Time To Start:", "SOON")
stat("Players:", "[SSticker.totalPlayers]")
if(client.holder)