Add round start check to Declare Ready

Added a check to 'declare ready' to prevent readying up after the round
started. Allowing this to happen caused a bug where the player would be
unable to change their character setup if they declared ready after the
round started, such as to look at the manifest to see which character
would be best to play, until after reconnecting.
This commit is contained in:
Akai Alonkai
2014-10-01 06:16:29 -04:00
parent a26185dd9e
commit 4c5665d4fd

View File

@@ -95,7 +95,10 @@
return 1
if(href_list["ready"])
ready = !ready
if(!ticker || ticker.current_state <= GAME_STATE_PREGAME) // Make sure we don't ready up after the round has started
ready = !ready
else
ready = 0
if(href_list["refresh"])
src << browse(null, "window=playersetup") //closes the player setup window