mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-15 04:32:14 +00:00
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:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user