Skip to content

Commit

Permalink
Fix typo getting levelpic, titlepatch in MAPINFO lumps
Browse files Browse the repository at this point in the history
  • Loading branch information
bradharding committed Nov 12, 2023
1 parent 4aa1663 commit afc29d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wi_stuff.c
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ static void WI_DrawLF(void)
{
const int x = (VANILLAWIDTH - SHORT(finished->width)) / 2;
int y = WI_TITLEY;
const int titlepatch = P_GetMapTitlePatch(wbs->epsd, wbs->last + 1);
const int titlepatch = P_GetMapTitlePatch(wbs->epsd + 1, wbs->last + 1);

// draw <LevelName>
if (titlepatch > 0)
Expand Down Expand Up @@ -426,7 +426,7 @@ static void WI_DrawEL(void)
{
const int x = (VANILLAWIDTH - SHORT(entering->width)) / 2;
int y = WI_TITLEY;
const int titlepatch = P_GetMapTitlePatch(wbs->epsd, wbs->next + 1);
const int titlepatch = P_GetMapTitlePatch(wbs->epsd + 1, wbs->next + 1);

// draw "Entering"
if (SHORT(entering->height) < VANILLAHEIGHT)
Expand Down

0 comments on commit afc29d8

Please sign in to comment.