code downscale

This commit is contained in:
yellowtd 2017-03-11 20:07:29 -05:00
parent 2247de431c
commit 14e695537a

View file

@ -483,20 +483,17 @@ static void D_Display(void)
if (rendermode != render_none) if (rendermode != render_none)
{ {
// miru: we can use the mapheaderinfo to change the forced wipe the instant the map loads // miru: we can use the mapheaderinfo to change the forced wipe the instant the map loads
if (!mapheaderinfo[gamemap-1]->postlevelwipe) if (mapheaderinfo[gamemap-1]->postlevelwipe && mapheaderinfo[gamemap-1]->postlevelwipe < 100)
{
F_WipeEndScreen();
F_RunWipe(wipedefs[wipedefindex], gamestate != GS_TIMEATTACK);
}
else
{
if (mapheaderinfo[gamemap-1]->postlevelwipe < 100)
{ {
F_WipeStartScreen(); F_WipeStartScreen();
V_DrawFill(0, 0, BASEVIDWIDTH, BASEVIDHEIGHT, mapheaderinfo[gamemap-1]->wipecolor); V_DrawFill(0, 0, BASEVIDWIDTH, BASEVIDHEIGHT, mapheaderinfo[gamemap-1]->wipecolor);
F_WipeEndScreen(); F_WipeEndScreen();
F_RunWipe(mapheaderinfo[gamemap-1]->postlevelwipe, gamestate != GS_TIMEATTACK); F_RunWipe(mapheaderinfo[gamemap-1]->postlevelwipe, gamestate != GS_TIMEATTACK);
} }
else
{
F_WipeEndScreen();
F_RunWipe(wipedefs[wipedefindex], gamestate != GS_TIMEATTACK);
} }
} }
} }