From: Rudolf Polzer Date: Thu, 5 Aug 2010 17:53:52 +0000 (+0200) Subject: simplify the assault fix X-Git-Tag: xonotic-v0.1.0preview~266^2~14 X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=commitdiff_plain;h=9255880ead7253b1eee1c21c22b9a9ecaac7f5e2 simplify the assault fix --- diff --git a/qcsrc/server/assault.qc b/qcsrc/server/assault.qc index c4fe387478..d7ea87d332 100644 --- a/qcsrc/server/assault.qc +++ b/qcsrc/server/assault.qc @@ -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!