mirror of
https://github.com/nzp-team/quakec.git
synced 2025-04-26 03:21:37 +00:00
SERVER: Report when no zombie spawn points are active
This commit is contained in:
parent
44ea39dbe5
commit
9bf962939e
1 changed files with 5 additions and 0 deletions
|
@ -1531,6 +1531,11 @@ float() spawn_a_zombieA =
|
|||
zombie_spawn = find(zombie_spawn, classname, "spawn_zombie");
|
||||
}
|
||||
|
||||
if (zombie_spawn == world && cvar("developer")) {
|
||||
bprint(PRINT_HIGH, "No active spawn point exists! Bailing!\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
// prompt stage 2: the actual spawning of the zombie.
|
||||
spawn_a_zombieB(zombie_spawn);
|
||||
spawn_delay = time + delay_at_round;
|
||||
|
|
Loading…
Reference in a new issue