Parentheses
This commit is contained in:
parent
ad7a7788a0
commit
09086c72cb
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue