From ae7b1403b59b9c2f6b7145c2e6a18a74c0267fd1 Mon Sep 17 00:00:00 2001 From: Fabian Greffrath Date: Mon, 20 Nov 2023 18:55:17 +0100 Subject: [PATCH] catch fullscreen cwilv replacements (#1272) https://github.com/kraflab/dsda-doom/commit/4ee1cde8ef07e8b3983a66d4d439bdfd40271454 --- src/wi_stuff.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wi_stuff.c b/src/wi_stuff.c index d24cbd8e..cf4b3ea4 100644 --- a/src/wi_stuff.c +++ b/src/wi_stuff.c @@ -513,13 +513,13 @@ static void WI_drawEL(void) V_DrawPatch((ORIGWIDTH - SHORT(lpic->width))/2, y, lpic); } - else // [FG] prevent crashes for levels without name graphics - if (wbs->next >= 0 && wbs->next < num_lnames && lnames[wbs->next] != NULL) + else if (wbs->next >= 0 && wbs->next < num_lnames && lnames[wbs->next] != NULL) { // draw level // haleyjd: corrected to use height of entering, not map name - y += (5 * SHORT(entering->height)) / 4; + if (SHORT(lnames[wbs->next]->height) < ORIGHEIGHT) + y += (5 * SHORT(entering->height)) / 4; V_DrawPatch((ORIGWIDTH - SHORT(lnames[wbs->next]->width))/2, y, lnames[wbs->next]);