Subversion Repositories Kolibri OS

Rev

Rev 8557 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8557 Rev 9097
Line 209... Line 209...
209
    //////////////////////////////////////////////////////////////
209
    //////////////////////////////////////////////////////////////
210
    XTIPTOE_MUS,
210
    XTIPTOE_MUS,
211
    XFUNKIE_MUS,
211
    XFUNKIE_MUS,
212
    XDEATH_MUS,
212
    XDEATH_MUS,
213
    XGETYOU_MUS,                // DON'T KNOW
213
    XGETYOU_MUS,                // DON'T KNOW
214
    ULTIMATE_MUS,               // Trans Gr”sse
214
    ULTIMATE_MUS,               // Trans Gr�sse
Line 215... Line 215...
215
 
215
 
216
    DUNGEON_MUS,
216
    DUNGEON_MUS,
217
    GOINGAFT_MUS,
217
    GOINGAFT_MUS,
218
    POW_MUS,
218
    POW_MUS,
Line 404... Line 404...
404
// get timing info for last frame
404
// get timing info for last frame
405
//
405
//
406
    if (demoplayback || demorecord)   // demo recording and playback needs to be constant
406
    if (demoplayback || demorecord)   // demo recording and playback needs to be constant
407
    {
407
    {
408
        // wait up to DEMOTICS Wolf tics
408
        // wait up to DEMOTICS Wolf tics
409
        uint32_t curtime = SDL_GetTicks();
409
        uint32_t curtime =  uSDL_GetTicks();
410
        lasttimecount += DEMOTICS;
410
        lasttimecount += DEMOTICS;
411
        int32_t timediff = (lasttimecount * 100) / 7 - curtime;
411
        int32_t timediff = (lasttimecount * 100) / 7 - curtime;
412
        if(timediff > 0)
412
        if(timediff > 0)
413
            SDL_Delay(timediff);
413
            uSDL_Delay(timediff);
Line 414... Line 414...
414
 
414
 
415
        if(timediff < -2 * DEMOTICS)       // more than 2-times DEMOTICS behind?
415
        if(timediff < -2 * DEMOTICS)       // more than 2-times DEMOTICS behind?
Line 416... Line 416...
416
            lasttimecount = (curtime * 7) / 100;    // yes, set to current timecount
416
            lasttimecount = (curtime * 7) / 100;    // yes, set to current timecount