From: terencehill Date: Tue, 2 Jun 2020 15:24:28 +0000 (+0200) Subject: Don't count dead players when selecting a spawnpoint X-Git-Tag: xonotic-v0.8.5~957 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2b3011a3dc9adb56b1cd7c5814c7c1d5f8041c25;p=xonotic%2Fxonotic-data.pk3dir.git Don't count dead players when selecting a spawnpoint --- diff --git a/qcsrc/server/spawnpoints.qc b/qcsrc/server/spawnpoints.qc index 9c89ae6f6..0e270d30d 100644 --- a/qcsrc/server/spawnpoints.qc +++ b/qcsrc/server/spawnpoints.qc @@ -232,7 +232,7 @@ vector Spawn_Score(entity this, entity spot, float mindist, float teamcheck, boo float prio = 0; float shortest = vlen(world.maxs - world.mins); - FOREACH_CLIENT(IS_PLAYER(it) && it != this, { + FOREACH_CLIENT(IS_PLAYER(it) && !IS_DEAD(it) && it != this, { float thisdist = vlen(it.origin - spot.origin); if (thisdist < shortest) shortest = thisdist;