arrowList is majored
This commit is contained in:
parent
967f68ab25
commit
93adea1fa8
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue