From 15d7faf386aaddd044a4b56ad91dc242ab0e4856 Mon Sep 17 00:00:00 2001 From: Steve Date: Mon, 21 Dec 2015 16:03:30 +0000 Subject: [PATCH] Bug fix for escaping entities. --- src/battle/entities.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/battle/entities.c b/src/battle/entities.c index 76e5e0a..cf6d36d 100644 --- a/src/battle/entities.c +++ b/src/battle/entities.c @@ -135,7 +135,7 @@ void doEntities(void) break; } - if (e->alive != ALIVE_DEAD) + if (e->alive == ALIVE_ALIVE || e->alive == ALIVE_DYING) { if (e->action != NULL) { @@ -201,7 +201,7 @@ void doEntities(void) { numAllies++; - if (e->health > 0 && e->active && !(e->flags & EF_NO_EPIC)) + if (e->health > 0 && e->active) { numActiveAllies++; } @@ -210,7 +210,7 @@ void doEntities(void) { numEnemies++; - if (e->health > 0 && e->active && !(e->flags & EF_NO_EPIC)) + if (e->health > 0 && e->active) { numActiveEnemies++; }