From: Mario Date: Sun, 3 Mar 2013 21:28:10 +0000 (+1100) Subject: Remove the check for if the sprite exists when removing it (already done by the Waypo... X-Git-Tag: xonotic-v0.8.0~241^2^2~491 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8b98f266c69bdba61dba6f80598be73a1dd07362;p=xonotic%2Fxonotic-data.pk3dir.git Remove the check for if the sprite exists when removing it (already done by the WaypointSprite_Kill function) --- 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); }