0
0
Fork 0
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:
cypress 2024-04-20 15:24:29 -07:00 committed by GitHub
parent 44ea39dbe5
commit 9bf962939e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;