summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2018-11-15 12:39:50 +0100
committerPaweł Redman <pawel.redman@gmail.com>2018-11-16 00:08:22 +0100
commit74359e64a86e03601c81cacb7ea21413ab93999c (patch)
treea5db934c9b9275e2c6552ea7c0e3be2ffc0e7f9a /src/game
parent3856d920f6a95a54d5f1defd65241d28340adbc3 (diff)
Fix an error in score bias calculation.
Diffstat (limited to 'src/game')
-rw-r--r--src/game/g_main.c2
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;