void (* timerCallback)(void);
};
+//let's try +1... nope.
static Event eventList[EVENT_LIST_SIZE];
static uint32 nextEvent;
// increasing time, we have to search through the list for the lowest one.
//ALSO: There's a bug here--nextEvent is getting a bogus value/getting clobbered...
+// Seems like it's getting clobbered somewhere other than here...
double time = 0;
bool firstTime = true;
if (time == 0)
WriteLog("TIMING: GetTimeToNextEvent() failed to find next event!\n");
+ if (nextEvent >= EVENT_LIST_SIZE)
+ WriteLog("TIMING: GetTimeToNextEvent() has bad nextEvent (=%u)!\n", nextEvent);
+
return time;
}