From 8b98f266c69bdba61dba6f80598be73a1dd07362 Mon Sep 17 00:00:00 2001 From: Mario Date: Mon, 4 Mar 2013 08:28:10 +1100 Subject: [PATCH] Remove the check for if the sprite exists when removing it (already done by the WaypointSprite_Kill function) --- qcsrc/server/mutators/gamemode_td.qc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/qcsrc/server/mutators/gamemode_td.qc b/qcsrc/server/mutators/gamemode_td.qc index b81d1a785..67189f679 100644 --- a/qcsrc/server/mutators/gamemode_td.qc +++ b/qcsrc/server/mutators/gamemode_td.qc @@ -583,9 +583,10 @@ void build_phase() { if(head.health <= 0) continue; + print(strcat("Warning: Monster still alive during build phase! Monster name: ", head.netname, "\n")); - if(head.sprite) - WaypointSprite_Kill(head.sprite); + + WaypointSprite_Kill(head.sprite); remove(head); } @@ -621,7 +622,7 @@ void wave_end(float starting) FOR_EACH_PLAYER(tail) { if(starting) - Send_CSQC_Centerprint_Generic(tail, CPID_KH_MSG, "Defend the generator from waves of monsters!", 0, 0); + Send_CSQC_Centerprint_Generic(tail, CPID_KH_MSG, "Protect the generator from waves of monsters!", 0, 0); else Send_CSQC_Centerprint_Generic(tail, CPID_KH_MSG, ((wave_count >= max_waves) ? "Level victory!" : "Wave victory!"), 0, 0); } -- 2.39.2