diff --git a/include/utils.h b/include/utils.h index 7dda318..b107c5c 100644 --- a/include/utils.h +++ b/include/utils.h @@ -48,7 +48,7 @@ #define WHITE 15 /** MAX CARS ALLOWED **/ -#define MAX_CARS 30 +#define MAX_CARS 10 /** CAR LIGHTS **/ #define CAR_RUNNING 14 diff --git a/src/graphics.c b/src/graphics.c index 435ea62..845d61c 100644 --- a/src/graphics.c +++ b/src/graphics.c @@ -157,8 +157,8 @@ void drawNDmiss(){ char s[4]; int color; - rectfill(screen, (N_BLOCKS_X*BLOCK_W + (N_BLOCKS_X+ 1)*STREET_W) + 50, 157, - (N_BLOCKS_X*BLOCK_W + (N_BLOCKS_X+ 1)*STREET_W) + 70, 170, STAT_BG); + rectfill(screen, (N_BLOCKS_X*BLOCK_W + (N_BLOCKS_X+ 1)*STREET_W) + 40, 157, + (N_BLOCKS_X*BLOCK_W + (N_BLOCKS_X+ 1)*STREET_W) + 80, 170, STAT_BG); /* Critical section on the shared var deadline_misses */ pthread_mutex_lock(&dmiss_lock);