From 14e695537af81471cc6a85b806e46a6766b4268b Mon Sep 17 00:00:00 2001 From: yellowtd Date: Sat, 11 Mar 2017 20:07:29 -0500 Subject: [PATCH] code downscale --- src/d_main.c | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/src/d_main.c b/src/d_main.c index 3dbcf5bf7..df86763c0 100644 --- a/src/d_main.c +++ b/src/d_main.c @@ -483,20 +483,17 @@ static void D_Display(void) if (rendermode != render_none) { // miru: we can use the mapheaderinfo to change the forced wipe the instant the map loads - if (!mapheaderinfo[gamemap-1]->postlevelwipe) - { - F_WipeEndScreen(); - F_RunWipe(wipedefs[wipedefindex], gamestate != GS_TIMEATTACK); - } - else - { - if (mapheaderinfo[gamemap-1]->postlevelwipe < 100) - { - F_WipeStartScreen(); - V_DrawFill(0, 0, BASEVIDWIDTH, BASEVIDHEIGHT, mapheaderinfo[gamemap-1]->wipecolor); - F_WipeEndScreen(); - F_RunWipe(mapheaderinfo[gamemap-1]->postlevelwipe, gamestate != GS_TIMEATTACK); - } + if (mapheaderinfo[gamemap-1]->postlevelwipe && mapheaderinfo[gamemap-1]->postlevelwipe < 100) + { + F_WipeStartScreen(); + V_DrawFill(0, 0, BASEVIDWIDTH, BASEVIDHEIGHT, mapheaderinfo[gamemap-1]->wipecolor); + F_WipeEndScreen(); + F_RunWipe(mapheaderinfo[gamemap-1]->postlevelwipe, gamestate != GS_TIMEATTACK); + } + else + { + F_WipeEndScreen(); + F_RunWipe(wipedefs[wipedefindex], gamestate != GS_TIMEATTACK); } } }