mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Correctly check the max yaw offset in AI_CanTarget()
This caused AI to exit turrets immediately
This commit is contained in:
parent
010a5ffc74
commit
96d16bcbc1
1 changed files with 1 additions and 1 deletions
|
@ -778,7 +778,7 @@ bool TurretGun::AI_CanTarget(const vec3_t pos)
|
|||
yawCap = AngleSubtract(vAngles[1], m_fStartYaw);
|
||||
if (yawCap > m_fMaxYawOffset) {
|
||||
return false;
|
||||
} else if (yawCap < m_fMaxYawOffset) {
|
||||
} else if (yawCap < -m_fMaxYawOffset) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue