Merge pull request #100 from devnexen/hunt_target_fix

backport yquake2 fix for HuntTarget unitialised vector
This commit is contained in:
Yamagi 2024-08-18 17:05:34 +02:00 committed by GitHub
commit de69b2a37d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -390,6 +390,10 @@ HuntTarget(edict_t *self)
{
VectorSubtract(self->enemy->s.origin, self->s.origin, vec);
}
else
{
VectorClear(vec);
}
self->ideal_yaw = vectoyaw(vec);