Skip to content

Commit

Permalink
Merge pull request #100 from devnexen/hunt_target_fix
Browse files Browse the repository at this point in the history
backport yquake2 fix for HuntTarget unitialised vector
  • Loading branch information
Yamagi authored Aug 18, 2024
2 parents 6fba354 + 9fc912d commit de69b2a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/g_ai.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit de69b2a

Please sign in to comment.