X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Ftiming.cpp;h=11ae2345161357abcb0f15a045a7a5b9e72ac8c6;hb=c0001155bc0909da61f6c849c0be9b16e9b7f4b6;hp=2bf07091173a20fcd3c391d02328e8f330d6a751;hpb=eeb2935c12ef41a63049126748c2574b324403a5;p=apple2 diff --git a/src/timing.cpp b/src/timing.cpp index 2bf0709..11ae234 100755 --- a/src/timing.cpp +++ b/src/timing.cpp @@ -38,19 +38,20 @@ struct Event void (* timerCallback)(void); }; +//let's try +1... nope. static Event eventList[EVENT_LIST_SIZE]; -static uint32 nextEvent; +static uint32_t nextEvent; void InitializeEventList(void) { - for(uint32 i=0; i= EVENT_LIST_SIZE) + WriteLog("TIMING: GetTimeToNextEvent() has bad nextEvent (=%u)!\n", nextEvent); + return time; } @@ -119,7 +138,7 @@ void HandleNextEvent(void) double elapsedTime = eventList[nextEvent].eventTime; void (* event)(void) = eventList[nextEvent].timerCallback; - for(uint32 i=0; i