mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-09 23:02:02 +00:00
Merge pull request #1142 from devnexen/fix_warning_hunt_target
AI, HuntTarget fix runtime warning.
This commit is contained in:
commit
730d5281fd
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);
|
||||
}
|
||||
else
|
||||
{
|
||||
VectorClear(vec);
|
||||
}
|
||||
|
||||
self->ideal_yaw = vectoyaw(vec);
|
||||
|
||||
|
|
Loading…
Reference in a new issue