From 4388b7b187a81f1b6150f8f59bbd50026fd33f2c Mon Sep 17 00:00:00 2001 From: smallmodel <15067410+smallmodel@users.noreply.github.com> Date: Fri, 2 Feb 2024 19:26:11 +0100 Subject: [PATCH] AI_ThinkActive() must be used if the owner is an Actor --- code/fgame/weapturret.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/code/fgame/weapturret.cpp b/code/fgame/weapturret.cpp index 9b8a7229..6f0d806a 100644 --- a/code/fgame/weapturret.cpp +++ b/code/fgame/weapturret.cpp @@ -1267,10 +1267,12 @@ void TurretGun::AI_ThinkActive() void TurretGun::Think(void) { - if (owner || (!m_bHadOwner && aim_target)) { + if (!owner && (m_bHadOwner || !aim_target)) { + ThinkIdle(); + } else if (owner && owner->IsSubclassOfPlayer()) { P_ThinkActive(); } else { - ThinkIdle(); + AI_ThinkActive(); } }