[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 <the@san7890.com>
This commit is contained in:
SkyratBot
2022-10-13 23:21:11 +02:00
committed by GitHub
parent 422079e38c
commit 4ce4ef74f4
+1 -1
View File
@@ -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