mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Fixed AI parameters not fixing AI parameters
This commit is contained in:
parent
fdf1dac618
commit
60f6bb17e3
1 changed files with 2 additions and 2 deletions
|
@ -8004,8 +8004,8 @@ void Actor::FixAIParameters(void)
|
|||
if (m_pTetherEnt) {
|
||||
fMinLeash = 64;
|
||||
if (m_pTetherEnt->IsSubclassOfEntity()) {
|
||||
fMinLeash =
|
||||
m_pTetherEnt->angles.y - m_pTetherEnt->origin.y + m_pTetherEnt->angles.z + m_pTetherEnt->origin.z;
|
||||
Entity* pEnt = static_cast<Entity*>(m_pTetherEnt.Pointer());
|
||||
fMinLeash = pEnt->maxs[0] - pEnt->mins[1] + pEnt->maxs[1] - pEnt->mins[1];
|
||||
}
|
||||
|
||||
if (m_fLeash < fMinLeash) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue