Merge pull request #32 from BjossiAlfreds/checkattack

Fixed monsters not changing state when enemy goes away
This commit is contained in:
Yamagi 2019-09-26 14:24:04 +02:00 committed by GitHub
commit 4c8c98731d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1167,7 +1167,7 @@ ai_checkattack(edict_t *self, float dist)
qboolean hesDeadJim; qboolean hesDeadJim;
qboolean retval; qboolean retval;
if (!self || !self->enemy || !self->enemy->inuse) if (!self)
{ {
enemy_vis = false; enemy_vis = false;