From c7cb91a0770a51c4a07b06e969e502b1552f1956 Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Wed, 16 Jun 2021 12:02:51 +0200 Subject: [PATCH] Space is ArrowArray_t --- src/main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index fc8ea89..ad1a079 100644 --- a/src/main.c +++ b/src/main.c @@ -63,8 +63,10 @@ int main(int argc, char **argv) for (int i = 0; i < ARROW_NUMBER; i++) { scheduler0->arrowList->space[i].x = rand() % scheduler0->globalDrawingSpace->xmax; - scheduler0->arrowList->space[i].y = rand() % SPACE_SIZE; - scheduler0->arrowList->space[i].z = rand() % SPACE_SIZE; + scheduler0->arrowList->space[i].y = + rand() % scheduler0->globalDrawingSpace->ymax; + scheduler0->arrowList->space[i].z = + rand() % scheduler0->globalDrawingSpace->zmax; } scheduler0->nmaxThread = MAX_THREAD;