mirror of
https://github.com/nzp-team/quakec.git
synced 2025-04-10 03:52:16 +00:00
SERVER: Use fixed spawn points for sys_testmode
This commit is contained in:
parent
8e0a7d6dbc
commit
a5b70d7480
1 changed files with 10 additions and 0 deletions
|
@ -840,6 +840,16 @@ void() Player_PickSpawnPoint =
|
|||
entity spawn_point = world;
|
||||
float found_viable_spawn = false;
|
||||
|
||||
#ifndef FTE
|
||||
|
||||
// Eliminate random spawn points during automated testing.
|
||||
if (cvar("sys_testmode") != 0) {
|
||||
spawn_point = find(world, classname, SPAWN_1_CLASS);
|
||||
found_viable_spawn = true;
|
||||
}
|
||||
|
||||
#endif // FTE
|
||||
|
||||
// Assign a location
|
||||
while(!found_viable_spawn) {
|
||||
float index = random();
|
||||
|
|
Loading…
Reference in a new issue