]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Remove the check for if the sprite exists when removing it (already done by the Waypo...
authorMario <mario.mario@y7mail.com>
Sun, 3 Mar 2013 21:28:10 +0000 (08:28 +1100)
committerMario <mario.mario@y7mail.com>
Sun, 3 Mar 2013 21:28:10 +0000 (08:28 +1100)
qcsrc/server/mutators/gamemode_td.qc

index b81d1a785ebba200c1eb529716c046e16a6e0618..67189f67962a28e5b017bf75bc13a26041fa1ecd 100644 (file)
@@ -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);
        }