Skip to content

Commit

Permalink
Tweak "maps started/completed" in playerstats CCMD
Browse files Browse the repository at this point in the history
  • Loading branch information
bradharding committed Nov 5, 2023
1 parent bd50c99 commit 6ec8fa7
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions src/c_cmds.c
Original file line number Diff line number Diff line change
Expand Up @@ -5718,13 +5718,12 @@ static void C_PlayerStats_Game(void)
else
C_TabbedOutput(tabs, "Map explored\t%i%%\t\x96", nummappedlines * 100 / numvisiblelines);

temp1 = commifystat(stat_mapsstarted);
C_TabbedOutput(tabs, "Maps started\t1\t%s", temp1);
free(temp1);

temp1 = commifystat(stat_mapscompleted);
C_TabbedOutput(tabs, "Maps completed\t0\t%s", temp1);
temp2 = commifystat(stat_mapsstarted);
C_TabbedOutput(tabs, "Maps completed\t\x96\t%s of %s (%i%%)",
temp1, temp2, stat_mapscompleted * 100 / stat_mapsstarted);
free(temp1);
free(temp2);

temp1 = commify(viewplayer->gamessaved);
temp2 = commifystat(stat_gamessaved);
Expand Down Expand Up @@ -6269,13 +6268,12 @@ static void C_PlayerStats_NoGame(void)

C_Header(tabs, playerstats, PLAYERSTATSHEADER);

temp1 = commifystat(stat_mapsstarted);
C_TabbedOutput(tabs, "Maps started\t\x96\t%s", temp1);
free(temp1);

temp1 = commifystat(stat_mapscompleted);
C_TabbedOutput(tabs, "Maps completed\t\x96\t%s", temp1);
temp2 = commifystat(stat_mapsstarted);
C_TabbedOutput(tabs, "Maps completed\t\x96\t%s of %s (%i%%)",
temp1, temp2, stat_mapscompleted * 100 / stat_mapsstarted);
free(temp1);
free(temp2);

temp1 = commifystat(stat_gamessaved);
C_TabbedOutput(tabs, "Games saved\t\x96\t%s", temp1);
Expand Down

0 comments on commit 6ec8fa7

Please sign in to comment.