From ec3d8164a8fe4373e008cd68f72128eae7eb1228 Mon Sep 17 00:00:00 2001 From: Kelenius Date: Thu, 3 Jul 2014 20:30:29 +0400 Subject: [PATCH] Now uses isturf --- code/modules/mob/living/silicon/ai/freelook/eye.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/mob/living/silicon/ai/freelook/eye.dm b/code/modules/mob/living/silicon/ai/freelook/eye.dm index 0373da59133..a80d6a54271 100644 --- a/code/modules/mob/living/silicon/ai/freelook/eye.dm +++ b/code/modules/mob/living/silicon/ai/freelook/eye.dm @@ -61,7 +61,7 @@ var/mob/living/silicon/ai/AI = usr if(AI.eyeobj && AI.client.eye == AI.eyeobj) AI.cameraFollow = null - if (src.loc) + if (isturf(src.loc) || isturf(src)) AI.eyeobj.setLoc(src) // This will move the AIEye. It will also cause lights near the eye to light up, if toggled.