mirror of
https://github.com/yquake2/xatrix.git
synced 2024-11-12 23:54:30 +00:00
backport yquake2 fix for HuntTarget unitialised vector
This commit is contained in:
parent
6fba354e60
commit
9fc912dc01
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);
|
VectorSubtract(self->enemy->s.origin, self->s.origin, vec);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
VectorClear(vec);
|
||||||
|
}
|
||||||
|
|
||||||
self->ideal_yaw = vectoyaw(vec);
|
self->ideal_yaw = vectoyaw(vec);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue