arrowList is majored

This commit is contained in:
Adrien Bourmault 2021-06-16 12:17:00 +02:00
parent 967f68ab25
commit 93adea1fa8
No known key found for this signature in database
GPG Key ID: 6EB408FE0ACEC664
1 changed files with 6 additions and 2 deletions

View File

@ -45,7 +45,7 @@ pthread_t *SchedInit(Scheduler_t *scheduler)
// Scheduler area finder function // // Scheduler area finder function //
// -------------------------------------------------------------------------- // // -------------------------------------------------------------------------- //
static Center_t *findWorkArea(Center_t *centersList, Arrow_t *electedArrow, 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; register Center_t *currentCenter, *newCenter;
@ -120,7 +120,11 @@ static void *schedulerMain(void *scheduler)
// Find a local area // Find a local area
workArea = findWorkArea(centersList, electedArrow, args->ruleRadius, 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 a free area exists,
if (workArea) { if (workArea) {