From 15c165f4e5175cb294b93a0d2b7e152353aac656 Mon Sep 17 00:00:00 2001 From: PsiOmega Date: Tue, 30 Jun 2015 20:03:24 +0200 Subject: [PATCH] Fixes #7042. Fixes issues with the AI centering on its core whenever it's attached to machinery. Previously fixed on dev-freeze. --- code/modules/mob/living/silicon/ai/life.dm | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/code/modules/mob/living/silicon/ai/life.dm b/code/modules/mob/living/silicon/ai/life.dm index 602e427f95..5743583532 100644 --- a/code/modules/mob/living/silicon/ai/life.dm +++ b/code/modules/mob/living/silicon/ai/life.dm @@ -1,14 +1,13 @@ /mob/living/silicon/ai/Life() - if (src.stat == 2) + if (src.stat == DEAD) return else //I'm not removing that shitton of tabs, unneeded as they are. -- Urist //Being dead doesn't mean your temperature never changes var/turf/T = get_turf(src) - if (src.stat!=0) + if (src.stat!=CONSCIOUS) src.cameraFollow = null src.reset_view(null) - src.unset_machine() src.updatehealth() @@ -23,10 +22,6 @@ death() return - if (src.machine) - if (!( src.machine.check_eye(src) )) - src.reset_view(null) - // Handle power damage (oxy) if(src:aiRestorePowerRoutine != 0) // Lost power