umapinfo: fix levelpic for fullscreen patches (#1841)

This commit is contained in:
Roman Fomin 2024-08-15 13:31:07 +07:00 committed by GitHub
parent 5c4ef64c66
commit 0880d6f52c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -514,10 +514,10 @@ static void WI_drawEL(void)
{
patch_t* lpic = V_CachePatchName(wbs->nextmapinfo->levelpic, PU_CACHE);
y += (5 * SHORT(lpic->height)) / 4;
if (SHORT(lnames[wbs->next]->height) < SCREENHEIGHT)
y += (5 * SHORT(lpic->height)) / 4;
V_DrawPatch((SCREENWIDTH - SHORT(lpic->width))/2,
y, lpic);
V_DrawPatch((SCREENWIDTH - SHORT(lpic->width))/2, y, lpic);
}
// [FG] prevent crashes for levels without name graphics
else if (wbs->next >= 0 && wbs->next < num_lnames && lnames[wbs->next] != NULL)