Skip to content

Commit

Permalink
Further work on window caption
Browse files Browse the repository at this point in the history
  • Loading branch information
bradharding committed Nov 17, 2023
1 parent acabd3c commit a31c5db
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions src/m_menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1706,18 +1706,25 @@ void M_SetWindowCaption(void)
if (gamemode == commercial)
{
if (nerve)
{
char *temp = titlecase(*expansions[gameepisode - 1]);

M_snprintf(caption, sizeof(caption), "%s \xC2\xB7 %s \xC2\xB7 %s \xC2\xB7 %s",
mapnumandtitle, *expansions[gameepisode - 1], gamedescription, DOOMRETRO_NAME);
mapnumandtitle, temp, gamedescription, DOOMRETRO_NAME);
free(temp);
}
else
M_snprintf(caption, sizeof(caption), "%s \xC2\xB7 %s \xC2\xB7 %s",
mapnumandtitle, gamedescription, DOOMRETRO_NAME);
}
else if (gamemode == shareware)
M_snprintf(caption, sizeof(caption), "%s \xC2\xB7 %s \xC2\xB7 %s",
mapnumandtitle, gamedescription, DOOMRETRO_NAME);
else
{
char *temp = titlecase(*episodes[gameepisode - 1]);

M_snprintf(caption, sizeof(caption), "%s \xC2\xB7 %s \xC2\xB7 %s \xC2\xB7 %s",
mapnumandtitle, *episodes[gameepisode - 1], gamedescription, DOOMRETRO_NAME);
mapnumandtitle, temp, gamedescription, DOOMRETRO_NAME);
free(temp);
}
}
else
M_snprintf(caption, sizeof(caption), "%s \xC2\xB7 %s", gamedescription, DOOMRETRO_NAME);
Expand Down

0 comments on commit a31c5db

Please sign in to comment.