mirror of
https://github.com/yquake2/xatrix.git
synced 2024-11-09 22:31:43 +00:00
Merge pull request #100 from devnexen/hunt_target_fix
backport yquake2 fix for HuntTarget unitialised vector
This commit is contained in:
commit
de69b2a37d
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue