From c587c4d8b0619a6cb8c6db97588873ca7cc0266e Mon Sep 17 00:00:00 2001 From: PsiOmega Date: Thu, 11 Dec 2014 08:44:56 +0100 Subject: [PATCH] Ready-button consistency. The Ready/Not Ready options during round now always set the ready flag as according to their name, rather than always toggle. This prevents the case where (due to heavy load/no processing of dialogs during early client startup) the dialog claim one thing and the lobby status tab another. --- code/modules/mob/new_player/new_player.dm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/code/modules/mob/new_player/new_player.dm b/code/modules/mob/new_player/new_player.dm index 00c6f9d05e..a4382c16e5 100644 --- a/code/modules/mob/new_player/new_player.dm +++ b/code/modules/mob/new_player/new_player.dm @@ -29,11 +29,10 @@ output += "

Setup Character

" if(!ticker || ticker.current_state <= GAME_STATE_PREGAME) - var/readylink = "[ready ? "Not Ready" : "Ready"]" if(ready) - output += "

\[ Ready | [readylink] \]

" + output += "

\[ Ready | Not Ready \]

" else - output += "

\[ [readylink] | Not Ready \]

" + output += "

\[ Ready | Not Ready \]

" else output += "View the Crew Manifest

" @@ -99,7 +98,7 @@ if(href_list["ready"]) if(!ticker || ticker.current_state <= GAME_STATE_PREGAME) // Make sure we don't ready up after the round has started - ready = !ready + ready = text2num(href_list["ready"]) else ready = 0