GC go brrrr (#8232)

This commit is contained in:
Cadyn
2024-04-17 00:31:11 -07:00
committed by GitHub
parent acbf353d28
commit f34a1501f0
6 changed files with 219 additions and 2 deletions

View File

@@ -15,7 +15,7 @@
ai_log("engage_target() : Entering.", AI_LOG_DEBUG)
// Can we still see them?
if(!target || !can_attack(target))
if(QDELETED(target) || !can_attack(target)) //CHOMPEdit
ai_log("engage_target() : Lost sight of target.", AI_LOG_TRACE)
if(lose_target()) // We lost them (returns TRUE if we found something else to do)
ai_log("engage_target() : Pursuing other options (last seen, or a new target).", AI_LOG_TRACE)