static int wipe_exitMelt(int ticks) { V_FreeScreen(&wipe_scr_start); wipe_scr_start.width = 0; wipe_scr_start.height = 0; V_FreeScreen(&wipe_scr_end); wipe_scr_end.width = 0; wipe_scr_end.height = 0; // Paranoia screens[SRC_SCR] = wipe_scr_start; screens[DEST_SCR] = wipe_scr_end; return 0; }
OVERLAY static void F_BunnyScroll (void) { char name[10]; int stage; static int laststage; V_MarkRect (0, 0, SCREENWIDTH, SCREENHEIGHT); { int scrolled = (finalecount-230)/2; if (scrolled <= 0) { V_DrawNamePatch(0, 0, 0, pfub2, NULL, VPT_STRETCH); } else if (scrolled >= 320) { V_DrawNamePatch(0, 0, 0, pfub1, NULL, VPT_STRETCH); } else { #define SCRN 2 int realscrolled = (SCREENWIDTH * scrolled) / 320; V_AllocScreen(SCRN); V_DrawNamePatch(0, 0, SCRN, pfub2, NULL, VPT_STRETCH); V_CopyRect(realscrolled, 0, SCRN, SCREENWIDTH-realscrolled, SCREENHEIGHT, 0, 0, 0); V_DrawNamePatch(0, 0, SCRN, pfub1, NULL, VPT_STRETCH); V_CopyRect(0, 0, SCRN, realscrolled, SCREENHEIGHT, SCREENWIDTH-realscrolled, 0, 0); V_FreeScreen(SCRN); } } if (finalecount < 1130) return; if (finalecount < 1180) { // CPhipps - patch drawing updated V_DrawNamePatch((320-13*8)/2, (200-8*8)/2,0, "END0", NULL, VPT_STRETCH); laststage = 0; return; } stage = (finalecount-1180) / 5; if (stage > 6) stage = 6; if (stage > laststage) { S_StartSound (NULL, sfx_pistol); laststage = stage; } sprintf (name,"END%i",stage); // CPhipps - patch drawing updated V_DrawNamePatch((320-13*8)/2, (200-8*8)/2, 0, name, NULL, VPT_STRETCH); }