Merge pull request #12722 from SteelSlayer/wizard-teleport

Adds a cancel button to the wizard teleport spell popup menu
This commit is contained in:
Crazy Lemon
2019-12-16 18:44:48 -08:00
committed by GitHub
+4 -1
View File
@@ -25,10 +25,13 @@
var/A = null
if(!randomise_selection)
A = input("Area to teleport to", "Teleport", A) in teleportlocs
A = input("Area to teleport to", "Teleport", A) as null|anything in teleportlocs
else
A = pick(teleportlocs)
if(!A)
return
var/area/thearea = teleportlocs[A]
if(thearea.tele_proof && !istype(thearea, /area/wizard_station))