Diff for /np2/nevent.c between versions 1.2 and 1.4

version 1.2, 2003/10/19 14:56:15 version 1.4, 2003/11/13 15:33:05
Line 85  void nevent_progress(void) { Line 85  void nevent_progress(void) {
                         }                          }
                         item->flag |= NEVENT_SETEVENT;                          item->flag |= NEVENT_SETEVENT;
                         item->flag &= ~(NEVENT_ENABLE);                          item->flag &= ~(NEVENT_ENABLE);
   //                      TRACEOUT(("event = %x", curid));
                 }                  }
         }          }
         nevent.readyevents = eventnum;          nevent.readyevents = eventnum;
         I286_BASECLOCK = nextbase;          I286_BASECLOCK = nextbase;
         I286_REMCLOCK += nextbase;          I286_REMCLOCK += nextbase;
         nevent_execute();          nevent_execute();
 //      TRACEOUT((buf, "nextbase = %d (%d)", nextbase, I286_REMCLOCK));  //      TRACEOUT(("nextbase = %d (%d)", nextbase, I286_REMCLOCK));
 }  }
   
   
Line 208  SINT32 nevent_getremain(UINT id) { Line 209  SINT32 nevent_getremain(UINT id) {
         // 現在進行してるイベントを検索          // 現在進行してるイベントを検索
         for (i=0; i<nevent.readyevents; i++) {          for (i=0; i<nevent.readyevents; i++) {
                 if (nevent.level[i] == id) {                  if (nevent.level[i] == id) {
                         return(nevent.item[id].clock - I286_BASECLOCK - I286_REMCLOCK);                          return(nevent.item[id].clock - (I286_BASECLOCK - I286_REMCLOCK));
                 }                  }
         }          }
         return(-1);          return(-1);

Removed from v.1.2  
changed lines
  Added in v.1.4


RetroPC.NET-CVS <cvs@retropc.net>