From c5d0568578b5597d7f8a6cc05d344087c7ae544a Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Wed, 16 Jun 2021 13:15:26 +0200 Subject: [PATCH] space dimension --- src/scheduler.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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");