Fixes pregame loop with no readied players (#6814)

When the config option for pregame time was added in #6795, the
pregame_timeleft setting was moved out of the do while !setup loop.
If the game does not set up, it would keep decrementing the counter
into the negatives since it was never reset.
This commit is contained in:
ZekeSulastin
2020-03-11 01:35:09 -04:00
committed by GitHub
parent d391d9ab12
commit 3dba9dbc4e

View File

@@ -46,9 +46,9 @@ var/global/datum/controller/gameticker/ticker
send2mainirc("Server lobby is loaded and open at byond://[config.serverurl ? config.serverurl : (config.server ? config.server : "[world.address]:[world.port]")]") send2mainirc("Server lobby is loaded and open at byond://[config.serverurl ? config.serverurl : (config.server ? config.server : "[world.address]:[world.port]")]")
pregame_timeleft = config.pregame_time
do do
pregame_timeleft = config.pregame_time
to_chat(world, "<B><FONT color='blue'>Welcome to the pregame lobby!</FONT></B>") to_chat(world, "<B><FONT color='blue'>Welcome to the pregame lobby!</FONT></B>")
to_chat(world, "Please set up your character and select ready. The round will start in [pregame_timeleft] seconds.") to_chat(world, "Please set up your character and select ready. The round will start in [pregame_timeleft] seconds.")
while(current_state == GAME_STATE_PREGAME) while(current_state == GAME_STATE_PREGAME)