From: Lyberta Date: Sat, 3 Jun 2017 17:16:09 +0000 (+0300) Subject: Survival: Use FLOAT_MAX in balancing. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e01738da2c759b5f02bab5a9cb112164e81d0a6f;p=xonotic%2Fxonotic-data.pk3dir.git Survival: Use FLOAT_MAX in balancing. --- 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))