mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Set the correct face mode for when the AI is facing a entity that allows AI to face
This fixes a mistake where AI would turn away from the player if the player approaches too much
This commit is contained in:
parent
90639cee36
commit
04da76167c
1 changed files with 1 additions and 1 deletions
|
@ -11619,7 +11619,7 @@ void Actor::DontFaceWall(void)
|
|||
return;
|
||||
}
|
||||
|
||||
if (trace.entityNum != ENTITYNUM_WORLD && trace.ent->entity->AIDontFace()) {
|
||||
if (trace.entityNum != ENTITYNUM_WORLD && !trace.ent->entity->AIDontFace()) {
|
||||
m_eDontFaceWallMode = 4;
|
||||
m_fDfwDerivedYaw = m_fDfwRequestedYaw;
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue