Destructor now asks for confirmation using alert instead of list

This commit is contained in:
Amunak
2014-12-13 07:02:54 +01:00
parent ddc598702c
commit 6419f3426e
+1 -2
View File
@@ -250,8 +250,7 @@ won't update every console in existence) but it's more of a hassle to do. Also,
if(linked_destroy.busy)
usr << "\red The destructive analyzer is busy at the moment."
else
var/choice = input("Proceeding will destroy loaded item.") in list("Proceed", "Cancel")
if(choice == "Cancel" || !linked_destroy) return
if(alert("Proceeding will destroy loaded item. Continue?", "Destructive analyzer confirmation", "Yes", "No") == "No" || !linked_destroy) return
linked_destroy.busy = 1
screen = 0.1
updateUsrDialog()