mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-05-08 11:38:01 +03:00
AI_ThinkActive() must be used if the owner is an Actor
This commit is contained in:
parent
368f94ce3b
commit
4388b7b187
1 changed files with 4 additions and 2 deletions
|
@ -1267,10 +1267,12 @@ void TurretGun::AI_ThinkActive()
|
||||||
|
|
||||||
void TurretGun::Think(void)
|
void TurretGun::Think(void)
|
||||||
{
|
{
|
||||||
if (owner || (!m_bHadOwner && aim_target)) {
|
if (!owner && (m_bHadOwner || !aim_target)) {
|
||||||
|
ThinkIdle();
|
||||||
|
} else if (owner && owner->IsSubclassOfPlayer()) {
|
||||||
P_ThinkActive();
|
P_ThinkActive();
|
||||||
} else {
|
} else {
|
||||||
ThinkIdle();
|
AI_ThinkActive();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue