Permalink
Browse files

Merge pull request #933 from illwieckz/fixgameplaystat

restore newlines in gameplay stat log, partial revert c51de70, fix #932
  • Loading branch information...
DolceTriade committed Apr 11, 2016
2 parents 670e531 + bed1d88 commit 21ca53e4624cc980127c2b6f0708a74df1621e85
Showing with 25 additions and 25 deletions.
  1. +25 −25 src/sgame/sg_main.cpp
View
@@ -1916,22 +1916,22 @@ static void G_LogGameplayStats( int state )
Com_GMTime( &t );
Com_sprintf( logline, sizeof( logline ),
"# +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
"#"
"# Version: %s"
"# Map: %s"
"# Date: %04i-%02i-%02i"
"# Time: %02i:%02i:%02i"
"# Format: %i"
"#"
"# g_momentumHalfLife: %4i"
"# g_initialBuildPoints: %4i"
"# g_initialMineRate: %4i"
"# g_mineRateHalfLife: %4i"
"#"
"# 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16"
"# T #A #H AMom HMom LMR AME HME ABP HBP ABRV HBRV ACre HCre AVal HVal"
"# -------------------------------------------------------------------------",
"# +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n"
"#\n"
"# Version: %s\n"
"# Map: %s\n"
"# Date: %04i-%02i-%02i\n"
"# Time: %02i:%02i:%02i\n"
"# Format: %i\n"
"#\n"
"# g_momentumHalfLife: %4i\n"
"# g_initialBuildPoints: %4i\n"
"# g_initialMineRate: %4i\n"
"# g_mineRateHalfLife: %4i\n"
"#\n"
"# 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16\n"
"# T #A #H AMom HMom LMR AME HME ABP HBP ABRV HBRV ACre HCre AVal HVal\n"
"# -------------------------------------------------------------------------\n",
Q3_VERSION,
mapname,
t.tm_year + 1900, t.tm_mon + 1, t.tm_mday,
@@ -1977,7 +1977,7 @@ static void G_LogGameplayStats( int state )
GetAverageCredits( Cre, Val );
Com_sprintf( logline, sizeof( logline ),
"%4i %2i %2i %4i %4i %4.1f %4i %4i %4i %4i %4i %4i %4i %4i %4i %4i",
"%4i %2i %2i %4i %4i %4.1f %4i %4i %4i %4i %4i %4i %4i %4i %4i %4i\n",
time, num[ TEAM_ALIENS ], num[ TEAM_HUMANS ], Mom[ TEAM_ALIENS ], Mom[ TEAM_HUMANS ],
LMR, ME[ TEAM_ALIENS ], ME[ TEAM_HUMANS ], BP[ TEAM_ALIENS ], BP[ TEAM_HUMANS ],
BRV[ TEAM_ALIENS ], BRV[ TEAM_HUMANS ], Cre[ TEAM_ALIENS ], Cre[ TEAM_HUMANS ],
@@ -2007,14 +2007,14 @@ static void G_LogGameplayStats( int state )
sec = ( level.matchTime / 1000 ) % 60;
Com_sprintf( logline, sizeof( logline ),
"# -------------------------------------------------------------------------"
"#"
"# Match duration: %i:%02i"
"# Winning team: %s"
"# Average Players: %.1f + %.1f"
"# Average Aliens: %.1f + %.1f"
"# Average Humans: %.1f + %.1f"
"#",
"# -------------------------------------------------------------------------\n"
"#\n"
"# Match duration: %i:%02i\n"
"# Winning team: %s\n"
"# Average Players: %.1f + %.1f\n"
"# Average Aliens: %.1f + %.1f\n"
"# Average Humans: %.1f + %.1f\n"
"#\n",
min, sec,
winner,
level.team[ TEAM_ALIENS ].averageNumPlayers + level.team[ TEAM_HUMANS ].averageNumPlayers,

0 comments on commit 21ca53e

Please sign in to comment.