Skip to content

Commit

Permalink
Minor tweaks to mapstats CCMD output
Browse files Browse the repository at this point in the history
  • Loading branch information
bradharding committed Oct 21, 2023
1 parent 8b585c8 commit b0b91ad
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/c_cmds.c
Original file line number Diff line number Diff line change
Expand Up @@ -4601,7 +4601,7 @@ static void mapstats_cmd_func2(char *cmd, char *parms)
C_TabbedOutput(tabs, "Expansion\t" ITALICS("%s") " (2 of 2)", temp);
free(temp);

C_TabbedOutput(tabs, "Map\t%i of %i%s", gamemap, (gamemap == 9 ? 9 : 8), (gamemap == 9 ? " (secret)" : ""));
C_TabbedOutput(tabs, "Map\t%i of 9", gamemap);
}
else
{
Expand All @@ -4612,7 +4612,7 @@ static void mapstats_cmd_func2(char *cmd, char *parms)
free(temp);
}

C_TabbedOutput(tabs, "Map\t%i of %i%s", gamemap, (gamemap >= 31 ? gamemap : 30), (gamemap >= 31 ? " (secret)" : ""));
C_TabbedOutput(tabs, "Map\t%i of %i", gamemap, (bfgedition ? 33 : 32));
}
}
else
Expand All @@ -4625,7 +4625,7 @@ static void mapstats_cmd_func2(char *cmd, char *parms)
free(temp);
}

C_TabbedOutput(tabs, "Map\t%i of %i%s", gamemap, (gamemap == 9 ? 9 : 8), (gamemap == 9 ? " (secret)" : ""));
C_TabbedOutput(tabs, "Map\t%i of 9", gamemap);
}

if (!M_StringCompare(maptitle, mapnum))
Expand All @@ -4639,23 +4639,23 @@ static void mapstats_cmd_func2(char *cmd, char *parms)
if (gamemap == 11)
{
if (M_StringCompare(maptitle, s_HUSTR_11))
C_TabbedOutput(tabs, "Alternative Title\t" ITALICS("%s"), s_HUSTR_11_ALT);
C_TabbedOutput(tabs, INDENT "Alternative\t" ITALICS("%s"), s_HUSTR_11_ALT);
}
else if (gamemap == 31)
{
if (M_StringCompare(maptitle, s_HUSTR_31))
C_TabbedOutput(tabs, "Alternative Title\t" ITALICS("%s"), s_HUSTR_31_BFG);
C_TabbedOutput(tabs, INDENT "Alternative\t" ITALICS("%s"), s_HUSTR_31_BFG);
}
else if (gamemap == 32)
{
if (M_StringCompare(maptitle, s_HUSTR_32))
C_TabbedOutput(tabs, "Alternative Title\t" ITALICS("%s"), s_HUSTR_32_BFG);
C_TabbedOutput(tabs, INDENT "Alternative\t" ITALICS("%s"), s_HUSTR_32_BFG);
}
}
else if (gameepisode == 3 && gamemap == 7)
{
if (M_StringCompare(maptitle, s_HUSTR_E3M7))
C_TabbedOutput(tabs, "Alternate Title\t" ITALICS("%s"), s_HUSTR_E3M7_ALT);
C_TabbedOutput(tabs, INDENT "Alternative\t" ITALICS("%s"), s_HUSTR_E3M7_ALT);
}
}

Expand Down

0 comments on commit b0b91ad

Please sign in to comment.