From a552662bec5326a2e6c4c14e06b9a7c609bc7caf 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 9e19655335d..c6b1c08bcbf 100644 --- a/code/modules/mob/living/silicon/ai/freelook/eye.dm +++ b/code/modules/mob/living/silicon/ai/freelook/eye.dm @@ -86,7 +86,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.