mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user