From e964c45f00e9dc01a45930b9ca98d625ab94f3ae Mon Sep 17 00:00:00 2001 From: Bone White Date: Thu, 28 Aug 2014 15:34:31 +0100 Subject: [PATCH] Removed uncommented code was causing a problem with eva helm equipping --- code/modules/clothing/clothing.dm | 35 ------------------------------- 1 file changed, 35 deletions(-) diff --git a/code/modules/clothing/clothing.dm b/code/modules/clothing/clothing.dm index 17e9974cd1a..f43db0062a2 100644 --- a/code/modules/clothing/clothing.dm +++ b/code/modules/clothing/clothing.dm @@ -7,42 +7,7 @@ //BS12: Species-restricted clothing check. /obj/item/clothing/mob_can_equip(M as mob, slot) -/* - if(istype(M,/mob/living/carbon/human)) - var/mob/living/carbon/human/H = M - if(istype(src, /obj/item/clothing/head/helmet/space/rig)) // If the item to be equipped is a rigid suit helmet - if(istype(H.wear_suit, /obj/item/clothing/suit/space/rig)) // If the person is wearing a rigid suit - var/tempX = H.x - var/tempY = H.y - H << "\blue You start securing the [src] to your suit. (This will take a while)." - var/obj/item/clothing/head/helmet/space/rig/this_helmet = src - var/equip_time = round(this_helmet.equip_time/10) - var/i - for(i=1; i<=equip_time; i++) - sleep (10) // Check if they've moved every 10 time units - if ((tempX != usr.x) || (tempY != usr.y)) - H << "\red \The [src] is too fiddly to fasten whilst moving. \..." - return 0 - H << "\blue \The [src] clicks into place, sealing the suit to be space-proof." - else - M << "\red \The [src] is too heavy too wear without a rigid suit to support it. \..." - return 0 - - if(istype(src, /obj/item/clothing/suit/space/rig)) // If the equipped item is a rigid suit - var/tempX = H.x - var/tempY = H.y - M << "\blue You start climbing into the [src] and fasten the seals." - var/obj/item/clothing/suit/space/rig/this_rig = src - var/equip_time = round(this_rig.equip_time/10) - var/i - for(i=1; i<=equip_time; i++) - sleep (10) // Check if they've moved every 10 time units - if ((tempX != usr.x) || (tempY != usr.y)) - H << "\red \The [src] is too fiddly to fasten whilst moving. \..." - return 0 - M << "\blue You have finished fastening the [src]'s seals." -*/ //if we can equip the item anyway, don't bother with species_restricted (aslo cuts down on spam) if (!..()) return 0