Parentheses

This commit is contained in:
Steve 2016-05-08 19:02:05 +01:00
parent ad7a7788a0
commit 09086c72cb
1 changed files with 1 additions and 1 deletions

View File

@ -176,7 +176,7 @@ static void handleFleeingEntities(void)
for (i = 0, e = candidates[i] ; e != NULL ; e = candidates[++i]) for (i = 0, e = candidates[i] ; e != NULL ; e = candidates[++i])
{ {
if (e->health > 0 && e->flags & EF_RETREATING && getDistance(self->x, self->y, e->x, e->y) <= ESCAPE_DISTANCE) if (e->health > 0 && (e->flags & EF_RETREATING) && getDistance(self->x, self->y, e->x, e->y) <= ESCAPE_DISTANCE)
{ {
e->alive = ALIVE_ESCAPED; e->alive = ALIVE_ESCAPED;