fixes latejoin tgui menu (#63598)

Alt to #63596
This commit is contained in:
John Willard
2021-12-24 11:27:09 -05:00
committed by GitHub
parent 07565ea796
commit aa1a07663d
@@ -102,10 +102,8 @@
var/less_input_message
if(SSlag_switch.measures[DISABLE_DEAD_KEYLOOP])
less_input_message = " - Notice: Observer freelook is currently disabled."
var/this_is_like_playing_right = tgui_alert(usr, "Are you sure you wish to observe? You will not be able to play this round![less_input_message]", "Observe", "Yes", "No")
if(this_is_like_playing_right != "Yes")
return FALSE
if(QDELETED(src) || !src.client)
var/this_is_like_playing_right = tgui_alert(usr, "Are you sure you wish to observe? You will not be able to play this round![less_input_message]", "Observe", list("Yes", "No"))
if(QDELETED(src) || !src.client || this_is_like_playing_right != "Yes")
ready = PLAYER_NOT_READY
return FALSE