From bb985d44d483fdeeeddadd39aa8d6001c243799c Mon Sep 17 00:00:00 2001 From: Arkatos1 Date: Fri, 19 Apr 2019 15:59:03 +0200 Subject: [PATCH] Adds cancel button to teleportation scrolls --- code/game/objects/items/weapons/scrolls.dm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/code/game/objects/items/weapons/scrolls.dm b/code/game/objects/items/weapons/scrolls.dm index 8f6ffc96e1c..ccee6c18feb 100644 --- a/code/game/objects/items/weapons/scrolls.dm +++ b/code/game/objects/items/weapons/scrolls.dm @@ -47,7 +47,11 @@ var/A - A = input(user, "Area to jump to", "BOOYEA", A) in teleportlocs + A = input(user, "Area to jump to", "BOOYEA", A) as null|anything in teleportlocs + + if(!A) + return + var/area/thearea = teleportlocs[A] if(user.stat || user.restrained())