void I_FinishUpdate(void) { static int lasttic; int tics; int i; // draws little dots on the bottom of the screen, a simple fps meter if (devparm) { i = I_GetTime(); tics = i - lasttic; lasttic = i; if (tics > 20) tics = 20; for (i = 0; i < tics * 2; i += 2) screens[0][(SCREENHEIGHT - 2) * SCREENWIDTH + i + 3] = 0xff; for (; i < 20 * 2; i += 2) screens[0][(SCREENHEIGHT - 2) * SCREENWIDTH + i + 3] = 0x0; } // blit frame memcpy(vga_getgraphmem(), screens[0], SCREENWIDTH * SCREENHEIGHT); // sleep a bit if there was no sound update if (!snd_updated) { I_WaitVBL(1); } }
void M_QuitResponse(int ch) { if ((!isascii(ch) || toupper(ch) != 'Y') && ch != KEY_JOY4 ) { M_ClearMenus (); return; } if (!multiplayer) { if (gameinfo.quitSounds) { S_Sound(CHAN_INTERFACE, gameinfo.quitSounds[(gametic>>2)&7], 1, ATTN_NONE); I_WaitVBL (105); } }
void M_QuitResponse(int ch) { if (toupper(ch) != 'Y') { M_ClearMenus (); return; } if (!multiplayer) { if (gameinfo.quitSounds) { S_Sound (CHAN_VOICE, gameinfo.quitSounds[(gametic>>2)&7], 1, ATTN_SURROUND); I_WaitVBL (105); } }