mirror of
https://github.com/nzp-team/quakec.git
synced 2024-11-22 11:51:11 +00:00
SERVER: Fix auto-placed spawn locations not checking if World is in the way
This commit is contained in:
parent
d4380d8bab
commit
9593c550d6
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue