From 5e2b8026354580172e2afa8d5769c69774fb13d3 Mon Sep 17 00:00:00 2001 From: cypress Date: Tue, 14 May 2024 19:30:33 -0700 Subject: [PATCH] SERVER: Fix Zombes spawning at origin when theres no active spawn target --- source/server/ai/fte/waypoints_core.qc | 2 +- source/server/ai/zombie_core.qc | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/source/server/ai/fte/waypoints_core.qc b/source/server/ai/fte/waypoints_core.qc index ce35632..5e15eea 100644 --- a/source/server/ai/fte/waypoints_core.qc +++ b/source/server/ai/fte/waypoints_core.qc @@ -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; } diff --git a/source/server/ai/zombie_core.qc b/source/server/ai/zombie_core.qc index 3f48a1f..7d4b3f8 100644 --- a/source/server/ai/zombie_core.qc +++ b/source/server/ai/zombie_core.qc @@ -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; }