|
@@ -78,6 +78,9 @@ static void clearint(car * done)
|
|
|
// compass + origin is the array we use to determine what to add to the first number
|
|
|
// newcar->dest gives the direction, which we use to find the offset indicating it's additive value
|
|
|
// set the array of active cars to null at this value
|
|
|
+ kprintf("first third: %d", *(dirs + done->origin));
|
|
|
+ kprintf("second third: %p", *(compass + done->origin));
|
|
|
+ kprintf("third third: %d", *(*(compass + done->origin) + done->dest));
|
|
|
int total = *(dirs + done->origin) + *(*(compass + done->origin) + done->dest);
|
|
|
*(active + total) = NULL;
|
|
|
|