Skip to content
Permalink
Browse files

game: fixed win prob printing happens after statsdump log message, refs

  • Loading branch information
rmarquis committed Feb 10, 2020
1 parent 862601e commit 2bee354bbd43ffe0ea0e3f5d653482ba9298a7f0
Showing with 6 additions and 2 deletions.
  1. +6 −2 src/game/g_match.c
@@ -770,8 +770,12 @@ void G_printMatchInfo(gentity_t *ent)
// display map bias
if (g_skillRating.integer > 1)
{
CP(va("sc \"\n^2Map bias: ^1%+.1f^7/^$%+.1f^7 pct\n\" 0", 100.f * (level.mapProb - 0.5f), 100.f * (0.5f - level.mapProb)));
CP(va("sc \"\n^2Win probability: ^1%+.1f^7/^$%+.1f^7 pct\n\" 0", 100.f * level.axisProb, 100.f * level.alliesProb));
CP(va("sc \"\n^2Map bias: ^1%+.1f^7/^$%+.1f^7 pct\n^2Win prob: ^1%+.1f^7/^$%+.1f^7 pct\n\" 0",
100.f * (level.mapProb - 0.5f), 100.f * (0.5f - level.mapProb), 100.f * level.axisProb, 100.f * level.alliesProb));
}
else
{
CP(va("sc \"\n^2Win prob: ^1%+.1f^7/^$%+.1f^7 pct\n\" 0", 100.f * level.axisProb, 100.f * level.alliesProb));
}
#endif

0 comments on commit 2bee354

Please sign in to comment.
You can’t perform that action at this time.