Minor fix on Aug's fixing of that compile warning (which was the third commit to fix it, apparently people don't like warnings in their compiles, even if it doesn't interfere with anything). Was half tempted to leave the bug in, but I doubt anyone would find it funny that you'd only be able to melee people with the detective's revolver if they were dressed up as a detective (as opposed to YOU being dressed up as the detective).

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1356 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
n3ophyt3
2011-04-03 15:05:04 +00:00
parent 62efcce291
commit ebf38a6dcb
+6 -2
View File
@@ -488,8 +488,12 @@ obj/item/weapon/gun/revolver/attackby(obj/item/weapon/ammo/a357/A as obj, mob/us
/obj/item/weapon/gun/detectiverevolver/attack(mob/M as mob, mob/user as mob)
src.add_fingerprint(user)
// var/mob/living/carbon/human/H = M
var/detective = (istype(H.w_uniform, /obj/item/clothing/under/det) && istype(H.head, /obj/item/clothing/head/det_hat) && istype(H.wear_suit, /obj/item/clothing/suit/det_suit))
var/mob/living/carbon/human/H = user
var/detective
if(!istype(H))
detective = 0
else
detective = (istype(H.w_uniform, /obj/item/clothing/under/det) && istype(H.head, /obj/item/clothing/head/det_hat) && istype(H.wear_suit, /obj/item/clothing/suit/det_suit))
// ******* Check