mirror of
https://github.com/nzp-team/quakec.git
synced 2025-02-20 18:52:36 +00:00
SERVER: Fix Zombes spawning at origin when theres no active spawn target
This commit is contained in:
parent
6c7cad8e51
commit
5e2b802635
2 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue