diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2018-11-15 12:39:50 +0100 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2019-02-10 14:47:47 +0100 |
commit | cf24b33198a75c35ed995304e135401d8c84b09c (patch) | |
tree | 4ce41c5656f00c0921a9f8be87dbbff6a7c00a1f | |
parent | bbf515cdb1fdac39bafacedacb8fec537c0ef578 (diff) |
Fix an error in score bias calculation.
-rw-r--r-- | src/game/g_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/g_main.c b/src/game/g_main.c index ac3d55f..8971db2 100644 --- a/src/game/g_main.c +++ b/src/game/g_main.c @@ -2709,7 +2709,7 @@ static float AntistackScoreBias(int alien_score, int human_score) { float bias; - bias = log(alien_score / human_score * g_antistackScoreBias.value); + bias = log((float)alien_score / human_score * g_antistackScoreBias.value); if (fabsf(bias) < g_antistackScoreBiasThreshold.value) return 0.0f; |