Fixes double roundend time. (#27840)

This commit is contained in:
AnturK
2017-05-29 16:14:40 +02:00
committed by KorPhaeron
parent 4ffcb04ce2
commit dc4ed47936
+1 -1
View File
@@ -832,7 +832,7 @@ SUBSYSTEM_DEF(ticker)
to_chat(world, "<span class='boldannounce'>Rebooting World in [delay/10] [(delay >= 10 && delay < 20) ? "second" : "seconds"]. [reason]</span>")
var/start_wait = world.time
UNTIL(round_end_sound_sent && (world.time - start_wait) > (delay * 2)) //don't wait forever
UNTIL(round_end_sound_sent || (world.time - start_wait) > (delay * 2)) //don't wait forever
sleep(delay - (world.time - start_wait))
if(delay_end && !skip_delay)