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:
smallmodel 2024-11-22 18:52:36 +01:00
parent 90639cee36
commit 04da76167c
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512

View file

@ -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;