Skip to content

Commit

Permalink
Show custom episode name in window caption
Browse files Browse the repository at this point in the history
  • Loading branch information
bradharding committed Aug 15, 2024
1 parent a6d5f8d commit 3d36607
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/m_menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1787,7 +1787,10 @@ void M_SetWindowCaption(void)
{
if (gamemode == commercial)
{
if ((gamemission == doom2 && !nerve) || gamemission == pack_plut
if (customepisode)
M_snprintf(caption, sizeof(caption), "%s \xC2\xB7 %s \xC2\xB7 %s \xC2\xB7 %s",
mapnumandtitle, *episodes[gameepisode - 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",
mapnumandtitle, gamedescription, DOOMRETRO_NAME);
Expand Down

0 comments on commit 3d36607

Please sign in to comment.