catch fullscreen cwilv replacements (#1272)

4ee1cde8ef
This commit is contained in:
Fabian Greffrath 2023-11-20 18:55:17 +01:00 committed by GitHub
parent 01fd98a9f0
commit ae7b1403b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -513,12 +513,12 @@ 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
if (SHORT(lnames[wbs->next]->height) < ORIGHEIGHT)
y += (5 * SHORT(entering->height)) / 4;
V_DrawPatch((ORIGWIDTH - SHORT(lnames[wbs->next]->width))/2,