Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds a confirmation to disabling round end delay #4455

Merged
merged 1 commit into from
Sep 23, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion code/modules/admin/tabs/round_tab.dm
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,10 @@

if(!check_rights(R_SERVER))
return
if (SSticker.current_state != GAME_STATE_PREGAME)
if(SSticker.current_state != GAME_STATE_PREGAME)
if(SSticker.delay_end)
if(tgui_alert(usr, "Round end delay is already enabled, are you sure you want to disable it?", "Confirmation", list("Yes", "No"), 30 SECONDS) != "Yes")
return
SSticker.delay_end = !SSticker.delay_end
message_admins("[SPAN_NOTICE("[key_name(usr)] [SSticker.delay_end ? "delayed the round end" : "has made the round end normally"].")]")
for(var/client/C in GLOB.admins)
Expand Down
Loading