Prevents readying up in invalid state (#20240)

* prevents readying up in invalid state

* return

* lets you cancel but not ready up
This commit is contained in:
S34N
2023-03-08 19:56:58 +01:00
committed by GitHub
parent d0898bb256
commit 0f6cb57276
@@ -156,6 +156,11 @@
if(client.version_blocked)
client.show_update_notice()
return FALSE
if(!ready && !client.prefs.active_character.check_any_job() && (client.prefs.active_character.alternate_option == RETURN_TO_LOBBY))
to_chat(usr, "<span class='danger'>You have no jobs enabled, along with return to lobby if job is unavailable. This makes you ineligible for any round start role, please update your job preferences.</span>")
ready = FALSE
return FALSE
ready = !ready
new_player_panel_proc()