From 74359e64a86e03601c81cacb7ea21413ab93999c Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Thu, 15 Nov 2018 12:39:50 +0100 Subject: Fix an error in score bias calculation. --- src/game/g_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit