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

this fixes #151
This commit is contained in:
Daniel Gibson 2016-10-23 17:55:04 +02:00
parent 1a05d19d17
commit 10a8dfa388

View file

@ -1060,7 +1060,8 @@ ai_checkattack(edict_t *self)
VectorCopy(self->enemy->s.origin, self->monsterinfo.last_sighting);
}
if (coop && (self->monsterinfo.search_time < level.time))
/* look for other coop players here */
if (coop->value && (self->monsterinfo.search_time < level.time))
{
if (FindTarget(self))
{