]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Survival: Use FLOAT_MAX in balancing.
authorLyberta <lyberta@lyberta.net>
Sat, 3 Jun 2017 17:16:09 +0000 (20:16 +0300)
committerLyberta <lyberta@lyberta.net>
Sat, 3 Jun 2017 17:16:09 +0000 (20:16 +0300)
qcsrc/server/mutators/mutator/gamemode_survival.qc

index c55568a54404c2b856fb5b44e32abfa687058483..d8b571e6b416b0b3063491762cc006982f8c9229 100644 (file)
@@ -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))