Fix typo in ai_checkattack() leading to monsters running in place

this is the fix from yquake2/#151
This commit is contained in:
Daniel Gibson 2016-10-23 18:28:18 +02:00
parent 6034d77bbe
commit d1e811bd5b
1 changed files with 1 additions and 1 deletions

View File

@ -1021,7 +1021,7 @@ ai_checkattack(edict_t *self, float dist)
VectorCopy(self->enemy->s.origin, self->monsterinfo.last_sighting);
}
if (coop && (self->monsterinfo.search_time < level.time))
if (coop && coop->value && (self->monsterinfo.search_time < level.time))
{
if (FindTarget(self))
{