Skip to content

Commit

Permalink
Fix to displaying custom episode title in window caption
Browse files Browse the repository at this point in the history
  • Loading branch information
bradharding committed Aug 23, 2024
1 parent 11a8b56 commit 7dabe08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/m_menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1796,7 +1796,7 @@ void M_SetWindowCaption(void)
{
if (customepisode)
M_snprintf(caption, sizeof(caption), "%s \xC2\xB7 %s \xC2\xB7 %s \xC2\xB7 %s",
mapnumandtitle, *episodes[gameepisode - 1], gamedescription, DOOMRETRO_NAME);
mapnumandtitle, *episodes[maptoepisode[gamemap] - 1], gamedescription, DOOMRETRO_NAME);
else if ((gamemission == doom2 && !nerve) || gamemission == pack_plut
|| gamemission == pack_tnt || M_StringEndsWith(gamedescription, ".wad"))
M_snprintf(caption, sizeof(caption), "%s \xC2\xB7 %s \xC2\xB7 %s",
Expand Down

0 comments on commit 7dabe08

Please sign in to comment.