From 5426138de7fc84c26a4eee782ab4f523033a6212 Mon Sep 17 00:00:00 2001 From: Roman Fomin Date: Sun, 22 Sep 2024 16:26:00 +0700 Subject: [PATCH] umapinfo: proper fix levelpic for fullscreen patches (#1918) * Revert "umapinfo: fix levelpic for fullscreen patches (#1841)" This reverts commit 0880d6f52c14c013188cfbe0ffda55d6af2c6093. * proper fix for fullscreen patches --- src/wi_stuff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wi_stuff.c b/src/wi_stuff.c index 165328e9..8a4559e1 100644 --- a/src/wi_stuff.c +++ b/src/wi_stuff.c @@ -798,7 +798,7 @@ static void WI_drawEL(void) { patch_t* lpic = V_CachePatchName(wbs->nextmapinfo->levelpic, PU_CACHE); - if (SHORT(lnames[wbs->next]->height) < SCREENHEIGHT) + if (SHORT(lpic->height) < SCREENHEIGHT) y += (5 * SHORT(lpic->height)) / 4; V_DrawPatch((SCREENWIDTH - SHORT(lpic->width))/2, y, lpic);