From 9593c550d6c58ad47156780dfe60527272ec420f Mon Sep 17 00:00:00 2001 From: cypress Date: Sun, 24 Dec 2023 12:20:41 -0500 Subject: [PATCH] SERVER: Fix auto-placed spawn locations not checking if World is in the way --- source/server/entities/spawn_points.qc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/server/entities/spawn_points.qc b/source/server/entities/spawn_points.qc index fd5bef8..91d30d5 100644 --- a/source/server/entities/spawn_points.qc +++ b/source/server/entities/spawn_points.qc @@ -109,9 +109,10 @@ float units, vector feet, vector head) Spawns_PerformCheck = head = start_org + '0 0 32'; traceline (head, head + (dir * units), 0, spawn_points[SPAWN_PLR_1]); - // Spot is viable, both feet and head are in same boundary. + // Both feed and head are in the same boundary, one last step -- + // is this ent partially or totally in the world? if (trace_ent.classname == which.classname) { - return true; + return Player_CanStandHere(which); } } }