diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2018-11-15 12:39:50 +0100 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2018-11-16 00:08:22 +0100 |
commit | 74359e64a86e03601c81cacb7ea21413ab93999c (patch) | |
tree | a5db934c9b9275e2c6552ea7c0e3be2ffc0e7f9a | |
parent | 3856d920f6a95a54d5f1defd65241d28340adbc3 (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; |