From e01738da2c759b5f02bab5a9cb112164e81d0a6f Mon Sep 17 00:00:00 2001 From: Lyberta Date: Sat, 3 Jun 2017 20:16:09 +0300 Subject: [PATCH] Survival: Use FLOAT_MAX in balancing. --- qcsrc/server/mutators/mutator/gamemode_survival.qc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcsrc/server/mutators/mutator/gamemode_survival.qc b/qcsrc/server/mutators/mutator/gamemode_survival.qc index c55568a54..d8b571e6b 100644 --- a/qcsrc/server/mutators/mutator/gamemode_survival.qc +++ b/qcsrc/server/mutators/mutator/gamemode_survival.qc @@ -437,7 +437,7 @@ bool Surv_AddPlayerToTeam(entity player, int teamnum) LOG_TRACE("Removing bot"); // Remove bot to make space for human. entity bot = NULL; - float score = 999; + float score = FLOAT_MAX; FOREACH_CLIENT(IS_BOT_CLIENT(it), { if ((it.team == surv_attackerteam) && (it.surv_role == @@ -498,7 +498,7 @@ bool Surv_AddPlayerToTeam(entity player, int teamnum) LOG_TRACE("Removing bot"); // Remove bot to make space for human. entity bot = NULL; - float score = 999; + float score = FLOAT_MAX; FOREACH_CLIENT(IS_BOT_CLIENT(it), { if (!IS_DEAD(it) && (it.team == surv_defenderteam)) -- 2.39.5