From 2b3011a3dc9adb56b1cd7c5814c7c1d5f8041c25 Mon Sep 17 00:00:00 2001 From: terencehill Date: Tue, 2 Jun 2020 17:24:28 +0200 Subject: [PATCH] Don't count dead players when selecting a spawnpoint --- qcsrc/server/spawnpoints.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2