From f63b61cbda08450a462bb4b3f873212747b917a5 Mon Sep 17 00:00:00 2001 From: Erthilo Date: Sat, 23 Jun 2012 15:39:43 +0100 Subject: [PATCH] TG: Fixed some lag caused by improper usage of loops. Enjoy. Revision: r3764 Author: rockdtben --- code/modules/mob/living/carbon/human/life.dm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code/modules/mob/living/carbon/human/life.dm b/code/modules/mob/living/carbon/human/life.dm index c4c2a3a0dac..daf21b74276 100644 --- a/code/modules/mob/living/carbon/human/life.dm +++ b/code/modules/mob/living/carbon/human/life.dm @@ -1158,6 +1158,7 @@ seer = 0 see_invisible = 0 + else if (istype(wear_mask, /obj/item/clothing/mask/gas/voice/space_ninja)) switch(wear_mask:mode) if(0) @@ -1220,13 +1221,12 @@ see_in_dark = 2 var/seer = 0 - for(var/obj/effect/rune/R in loc) - if(R.word1==wordsee && R.word2==wordhell && R.word3==wordjoin) - seer = 1 + var/obj/effect/rune/R = locate() in loc + if (istype(R) && R.word1 == wordsee && R.word2 == wordhell && R.word3 == wordjoin) + seer = 1 if(!seer) see_invisible = 0 - else if(istype(head, /obj/item/clothing/head/helmet/welding)) // wat. This is never fucking called. if(!head:up && tinted_weldhelh) see_in_dark = 1