From e30df05c4a6c8a1bdebd399496db6fa62611bbfe Mon Sep 17 00:00:00 2001 From: Arokha Sieyes Date: Thu, 19 May 2016 11:53:36 -0400 Subject: [PATCH] Fixes #1591 Returns from read() early if you're not adjacent on guest pass. --- code/game/machinery/computer/guestpass.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/game/machinery/computer/guestpass.dm b/code/game/machinery/computer/guestpass.dm index f0b763ed99..a50680ef8d 100644 --- a/code/game/machinery/computer/guestpass.dm +++ b/code/game/machinery/computer/guestpass.dm @@ -25,6 +25,8 @@ user << "It expired at [worldtime2text(expiration_time)]." /obj/item/weapon/card/id/guest/read() + if(!Adjacent(usr)) + return //Too far to read if (world.time > expiration_time) usr << "This pass expired at [worldtime2text(expiration_time)]." else