SERVER: Fix auto-placed spawn locations not checking if World is in the way

This commit is contained in:
cypress 2023-12-24 12:20:41 -05:00
parent d4380d8bab
commit 9593c550d6

View file

@ -109,9 +109,10 @@ float units, vector feet, vector head) Spawns_PerformCheck =
head = start_org + '0 0 32'; head = start_org + '0 0 32';
traceline (head, head + (dir * units), 0, spawn_points[SPAWN_PLR_1]); 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) { if (trace_ent.classname == which.classname) {
return true; return Player_CanStandHere(which);
} }
} }
} }