simplify the assault fix
authorRudolf Polzer <divverent@alientrap.org>
Thu, 5 Aug 2010 17:53:52 +0000 (19:53 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Thu, 5 Aug 2010 17:53:52 +0000 (19:53 +0200)
qcsrc/server/assault.qc

index c4fe3874780886834ba6e7744e7aa5bc3501f7a4..d7ea87d33211d9799b9fbef9ed45bf1139676a15 100644 (file)
@@ -70,7 +70,7 @@ void assault_objective_decrease_use() {
                return;
        }
 
-       if(other.assault_sprite.classname == "sprite_waypoint")
+       if(other.assault_sprite)
                WaypointSprite_Disown(other.assault_sprite, waypointsprite_deadlifetime);
        else
                return; // already activated! cannot activate again!