components/prboom/f_wipe.c
// CPhipps - modified to allocate and deallocate screens[2 to 3] as needed, saving memory
modified to allocate and deallocate screens[2 to 3] as needed, saving memory
modified to allocate and deallocate screens [ 2 to 3 ] as needed saving memory
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;
  screens[SRC_SCR] = wipe_scr_start;
  screens[DEST_SCR] = wipe_scr_end;
  return 0;
}
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 ; screens [ SRC_SCR ] = wipe_scr_start ; screens [ DEST_SCR ] = wipe_scr_end ; return 0 ; }
CPhipps - modified to allocate and deallocate screens[2 to 3] as needed, saving memory
CPhipps - modified to allocate and deallocate screens [ 2 to 3 ] as needed saving memory
// Paranoia