Fixes issues with the AI centering on its core whenever it's attached to machinery.
Previously fixed on dev-freeze.
This commit is contained in:
PsiOmega
2015-06-30 20:03:24 +02:00
parent cdd1059e93
commit 15c165f4e5
+2 -7
View File
@@ -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