diff --git a/src/f_wipe.c b/src/f_wipe.c index 6b8386586..9909de0f0 100644 --- a/src/f_wipe.c +++ b/src/f_wipe.c @@ -91,7 +91,7 @@ INT32 lastwipetic = 0; static UINT8 *wipe_scr_start; //screen 3 static UINT8 *wipe_scr_end; //screen 4 static UINT8 *wipe_scr; //screen 0 (main drawing) -static fixed_t paldiv = 0; +static fixed_t paldiv; /** Create fademask_t from lump * @@ -157,7 +157,7 @@ static fademask_t *F_GetFadeMask(UINT8 masknum, UINT8 scrnnum) { while (lsize--) { // Determine pixel to use from fademask - pcolor = &pMasterPalette[*lump++]; + pcolor = &pLocalPalette[*lump++]; *mask++ = FixedDiv((pcolor->s.red+1)<>FRACBITS; } @@ -349,8 +349,7 @@ void F_RunWipe(UINT8 wipetype, boolean drawMenu) UINT8 wipeframe = 0; fademask_t *fmask; - if (!paldiv) - paldiv = FixedDiv(257<