diff --git a/src/scheduler.c b/src/scheduler.c index b66a2b3..437bcfa 100644 --- a/src/scheduler.c +++ b/src/scheduler.c @@ -45,7 +45,7 @@ pthread_t *SchedInit(Scheduler_t *scheduler) // Scheduler area finder function // // -------------------------------------------------------------------------- // static Center_t *findWorkArea(Center_t *centersList, Arrow_t *electedArrow, - int ruleRadius, size_t spaceSize) + int ruleRadius, size_t spaceSize, int xmax, int ymax, int zmax) { register Center_t *currentCenter, *newCenter; @@ -120,7 +120,11 @@ static void *schedulerMain(void *scheduler) // Find a local area workArea = findWorkArea(centersList, electedArrow, args->ruleRadius, - args->globalDrawingSpace->size); + args->globalDrawingSpace->size, + args->arrowList->xmax, + args->arrowList->ymax, + args->arrowList->zmax + ); // If a free area exists, if (workArea) {