SERVER: Fix Zombes spawning at origin when theres no active spawn target

This commit is contained in:
cypress 2024-05-14 19:30:33 -07:00
parent 6c7cad8e51
commit 5e2b802635
2 changed files with 4 additions and 3 deletions

View file

@ -842,7 +842,7 @@ void () Waypoint_Functions =
self.waypoint_delay = time + 1;
}
if (self.button4 && self.weapoiny_delay < time) {
if (self.button4 && self.waypoint_delay < time) {
Move_Waypoint();
self.waypoint_delay = time + 0.25;
}

View file

@ -1531,8 +1531,9 @@ 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");
if (zombie_spawn == world) {
if (cvar("developer"))
bprint(PRINT_HIGH, "spawn_a_zombieA: No active spawn point exists! Bailing!\n");
return false;
}