AI_ThinkActive() must be used if the owner is an Actor

This commit is contained in:
smallmodel 2024-02-02 19:26:11 +01:00
parent 368f94ce3b
commit 4388b7b187
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512

View file

@ -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();
}
}