From 4ce4ef74f4e3aac8de09936d67059229f2314bf4 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Thu, 13 Oct 2022 23:21:11 +0200 Subject: [PATCH] [MIRROR] Player Panel's "Make AI" Now Respects Closing The Input Menu [MDB IGNORE] (#16841) * Player Panel's "Make AI" Now Respects Closing The Input Menu (#70449) Player Panel's Make AI Now Respects Closing Hey there, Before, this wouldn't respect it if the user calling this via the Player Panel just hit the X button, instead of "cancel" on the TGUI input message. If you hit the X button, it would just create an AI at the normal AI landmark anyways (very stupid!). I fell for this like twice in the last week, so let's get this outta here. * Player Panel's "Make AI" Now Respects Closing The Input Menu Co-authored-by: san7890 --- code/modules/admin/topic.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/admin/topic.dm b/code/modules/admin/topic.dm index 7d7f8ce295c..1c803a57c5a 100644 --- a/code/modules/admin/topic.dm +++ b/code/modules/admin/topic.dm @@ -740,7 +740,7 @@ var/move = TRUE switch(tgui_alert(usr,"Move new AI to AI spawn location?","Move AI?", list("Yes", "No","Cancel"))) - if("Cancel") + if("Cancel", null) return if("No") move = FALSE