summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game/g_main.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/game/g_main.c b/src/game/g_main.c
index 9d3f04b..94d664e 100644
--- a/src/game/g_main.c
+++ b/src/game/g_main.c
@@ -2701,13 +2701,17 @@ CheckAntistack
static float AntistackTeamBias(int aliens, int humans)
{
+ float bias;
+
if (abs(aliens - humans) < g_antistackTeamBiasThreshold.integer)
return 0.0f;
if (humans > aliens)
- return (humans - aliens - g_antistackTeamBiasThreshold.integer + 1);
+ bias = (humans - aliens - g_antistackTeamBiasThreshold.integer + 1);
else
- return (humans - aliens + g_antistackTeamBiasThreshold.integer - 1);
+ bias = (humans - aliens + g_antistackTeamBiasThreshold.integer - 1);
+
+ return bias * g_antistackTeamBiasFactor.value;
}
static float AntistackScoreBias(int alien_score, int human_score)