From d1e811bd5b0460bb1454f87eb6995c2f101f046b Mon Sep 17 00:00:00 2001 From: Daniel Gibson Date: Sun, 23 Oct 2016 18:28:18 +0200 Subject: [PATCH] Fix typo in ai_checkattack() leading to monsters running in place this is the fix from yquake2/#151 --- src/g_ai.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/g_ai.c b/src/g_ai.c index 66fe6d0..d5ad4c0 100644 --- a/src/g_ai.c +++ b/src/g_ai.c @@ -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)) {