space dimension

This commit is contained in:
Adrien Bourmault 2021-06-16 13:15:26 +02:00
parent de284948d7
commit c5d0568578
No known key found for this signature in database
GPG Key ID: 6EB408FE0ACEC664
1 changed files with 3 additions and 3 deletions

View File

@ -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");