mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 03:02:54 +00:00
Merge pull request #6512 from Verkister/patch-29
Sanity check for orphaned ai_holder runtimes
This commit is contained in:
@@ -5,6 +5,9 @@
|
|||||||
|
|
||||||
// If our holder is able to do anything.
|
// If our holder is able to do anything.
|
||||||
/datum/ai_holder/proc/can_act()
|
/datum/ai_holder/proc/can_act()
|
||||||
|
if(!holder) // Holder missing.
|
||||||
|
SSai.processing -= src
|
||||||
|
return FALSE
|
||||||
if(holder.stat) // Dead or unconscious.
|
if(holder.stat) // Dead or unconscious.
|
||||||
ai_log("can_act() : Stat was non-zero ([holder.stat]).", AI_LOG_TRACE)
|
ai_log("can_act() : Stat was non-zero ([holder.stat]).", AI_LOG_TRACE)
|
||||||
return FALSE
|
return FALSE
|
||||||
@@ -95,4 +98,4 @@
|
|||||||
holder.IMove(get_step(holder,moving_to))
|
holder.IMove(get_step(holder,moving_to))
|
||||||
wander_delay = base_wander_delay
|
wander_delay = base_wander_delay
|
||||||
ai_log("handle_wander_movement() : Exited.", AI_LOG_DEBUG)
|
ai_log("handle_wander_movement() : Exited.", AI_LOG_DEBUG)
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user