From 11a884ca358415ff4881abdfbc04a10796429da4 Mon Sep 17 00:00:00 2001 From: Tastyfish Date: Sun, 5 Feb 2012 06:34:19 -0500 Subject: [PATCH] bugfix for machines so attack_hand's mob typechecks actually work right is usr is not user (most likely if usr isn't set) --- code/game/machinery/machinery.dm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/game/machinery/machinery.dm b/code/game/machinery/machinery.dm index 17364faafe6..48c6a51b93c 100644 --- a/code/game/machinery/machinery.dm +++ b/code/game/machinery/machinery.dm @@ -175,9 +175,9 @@ Class Procs: return 1 if(user.lying || user.stat) return 1 - if ( ! (istype(usr, /mob/living/carbon/human) || \ - istype(usr, /mob/living/silicon) || \ - istype(usr, /mob/living/carbon/monkey) && ticker && ticker.mode.name == "monkey") ) + if ( ! (istype(user, /mob/living/carbon/human) || \ + istype(user, /mob/living/silicon) || \ + istype(user, /mob/living/carbon/monkey) && ticker && ticker.mode.name == "monkey") ) usr << "\red You don't have the dexterity to do this!" return 1 /*