copy PrBoom+ logic for UMAPINFO exitpic/enterpic (#628)

This commit is contained in:
Roman Fomin 2022-06-27 13:19:44 +07:00 committed by GitHub
parent 2f213685bf
commit b7cef58607
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -330,9 +330,6 @@ static int NUMCMAPS;
// GRAPHICS // GRAPHICS
// //
// background (map of levels).
static patch_t* bg;
// You Are Here graphic // You Are Here graphic
static patch_t* yah[2]; static patch_t* yah[2];
@ -405,6 +402,7 @@ static const char *exitpic, *enterpic;
// //
static void WI_slamBackground(void) static void WI_slamBackground(void)
{ {
WI_DrawBackground();
V_CopyRect(0, 0, 1, SCREENWIDTH, SCREENHEIGHT, 0, 0, 0); // killough 11/98 V_CopyRect(0, 0, 1, SCREENWIDTH, SCREENHEIGHT, 0, 0, 0); // killough 11/98
} }
@ -945,8 +943,6 @@ static void WI_initNoState(void)
state = NoState; state = NoState;
acceleratestage = 0; acceleratestage = 0;
cnt = 10; cnt = 10;
WI_DrawBackground();
} }
@ -1935,7 +1931,7 @@ void WI_Ticker(void)
void WI_DrawBackground(void) void WI_DrawBackground(void)
{ {
char name[32]; char name[9];
if (state != StatCount && enterpic) if (state != StatCount && enterpic)
strcpy(name, enterpic); strcpy(name, enterpic);
@ -1948,8 +1944,7 @@ void WI_DrawBackground(void)
sprintf(name, "WIMAP%d", wbs->epsd); sprintf(name, "WIMAP%d", wbs->epsd);
// background // background
bg = W_CacheLumpName(name, PU_CACHE); V_DrawPatchFullScreen(1, W_CacheLumpName(name, PU_CACHE));
V_DrawPatchFullScreen(1, bg);
} }
// ==================================================================== // ====================================================================
@ -1964,8 +1959,6 @@ void WI_loadData(void)
int i,j; int i,j;
char name[32]; char name[32];
WI_DrawBackground(); // killough 11/98
#if 0 #if 0
// UNUSED // UNUSED
if (gamemode == commercial) if (gamemode == commercial)