mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-01-22 01:01:18 +00:00
AI, HuntTarget fix runtime warning.
`Conditional jump or move depends on unitialised value(s)...HuntTarget (g_ai.c:423)...`
This commit is contained in:
parent
a26c496038
commit
d7dd4e40a4
1 changed files with 4 additions and 0 deletions
|
@ -419,6 +419,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