diff --git a/src/scheduler.c b/src/scheduler.c index 6002b7b..d8a99c3 100644 --- a/src/scheduler.c +++ b/src/scheduler.c @@ -53,9 +53,9 @@ static Center_t *findWorkArea(Center_t *centersList, Arrow_t *electedArrow, newCenter = (Center_t*) malloc(sizeof(Center_t)); while (currentCenter){ - if ( (xmax && (abs(electedArrow->x - currentCenter->x) <= ruleRadius)) - || (ymax && (abs(electedArrow->y - currentCenter->y) <= ruleRadius)) - || (zmax && (abs(electedArrow->z - currentCenter->z) <= ruleRadius)) + if ( (xmax && (abs(electedArrow->x - currentCenter->x) <= ruleRadius)) + || (ymax && (abs(electedArrow->y - currentCenter->y) <= ruleRadius)) + || (zmax && (abs(electedArrow->z - currentCenter->z) <= ruleRadius)) ){ free(newCenter); //printLog("Can't find a free area\n");