summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2018-11-15 12:39:50 +0100
committerPaweł Redman <pawel.redman@gmail.com>2019-02-10 14:47:47 +0100
commitcf24b33198a75c35ed995304e135401d8c84b09c (patch)
tree4ce41c5656f00c0921a9f8be87dbbff6a7c00a1f /src
parentbbf515cdb1fdac39bafacedacb8fec537c0ef578 (diff)
Fix an error in score bias calculation.
Diffstat (limited to 'src')
-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;