summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2018-11-18 00:12:13 +0100
committerPaweł Redman <pawel.redman@gmail.com>2019-02-10 14:47:47 +0100
commitfc63228af788966c871684e0f7d58c0c30fd8aa4 (patch)
tree99cbc072b4f388ffe2720d5bf34297ecd6a0a04d
parent233cd1b315cebe21bb86b728ba3d7037cfdd8beb (diff)
Make sure negative g_antistack values always reset handicaps.
-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 c7ad479..0aa08b7 100644
--- a/src/game/g_main.c
+++ b/src/game/g_main.c
@@ -2821,13 +2821,13 @@ skip_bias:
(handicap_team == PTE_ALIENS ? "Alien" : "Human"),
(1.0f - handicap) * 100.0f);
+skip_handicap:
// Negative g_antistack values cause a dry run and are for debugging.
if (g_antistack.integer < 0) {
level.alienHandicap = 1.0f;
level.humanHandicap = 1.0f;
}
-skip_handicap:
G_LogPrintf("Antistack: %dv%d %d:%d %f %f %f %i %f%s\n",
aliens, humans, alien_score, human_score, teambias,
scorebias, bias, handicap_team, handicap, log_notice);