Quick fix to stop mobs in nullspace runtiming the mobs and ai subsystems.

This commit is contained in:
Leshana
2020-07-14 11:27:37 -04:00
parent 863e7fdb8b
commit 36ef48c931
2 changed files with 2 additions and 2 deletions

View File

@@ -32,7 +32,7 @@ SUBSYSTEM_DEF(ai)
while(currentrun.len)
var/datum/ai_holder/A = currentrun[currentrun.len]
--currentrun.len
if(!A || QDELETED(A) || A.busy) // Doesn't exist or won't exist soon or not doing it this tick
if(!A || QDELETED(A) || !A.holder?.loc || A.busy) // Doesn't exist or won't exist soon or not doing it this tick
continue
if(process_z[get_z(A.holder)])

View File

@@ -43,7 +43,7 @@ SUBSYSTEM_DEF(mobs)
if(!M || QDELETED(M))
mob_list -= M
continue
else if(M.low_priority && !(process_z[get_z(M)]))
else if(M.low_priority && !(M.loc && process_z[get_z(M)]))
slept_mobs++
continue