Skip to content

Commit

Permalink
Fix wrong INTERPIC lump shown for episode 4 if PWAD replaces it
Browse files Browse the repository at this point in the history
  • Loading branch information
bradharding committed Sep 17, 2024
1 parent 57e81bb commit 953641c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/wi_stuff.c
Original file line number Diff line number Diff line change
Expand Up @@ -1230,7 +1230,14 @@ static void WI_LoadData(void)
lump = W_CacheLumpName("INTERPIC");
}
else if (gamemode == retail && wbs->epsd == 3)
lump = W_CacheLumpName(REKKRSL ? "INTERPIW" : "INTERPI1");
{
if (REKKRSL)
lump = W_CacheLumpName("INTERPIW");
else if (W_GetNumLumps("INTERPIC") > 2)
lump = W_CacheLumpName("INTERPIC");
else
lump = W_CacheLumpName("INTERPI1");
}
else if (sigil && wbs->epsd == 4)
lump = W_CacheLumpName("SIGILINT");
else if (sigil2 && wbs->epsd == 5)
Expand Down

0 comments on commit 953641c

Please sign in to comment.