]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Make sure the hunter-killer rocket loses its target if the player becomes a spectator...
authorMario <mario@smbclan.net>
Tue, 19 Jun 2018 09:05:28 +0000 (19:05 +1000)
committerMario <mario@smbclan.net>
Tue, 19 Jun 2018 09:05:28 +0000 (19:05 +1000)
qcsrc/common/turrets/turret/hk_weapon.qc

index 0e38ebfad388c01d01a858666917e494542f0ca1..b68bfb77307a5f3ed243779deb9b3b717eacfad9 100644 (file)
@@ -58,7 +58,7 @@ void turret_hk_missile_think(entity this)
     //if (this.cnt < time)
     // turret_hk_missile_explode();
 
-    if (IS_DEAD(this.enemy))
+    if (IS_DEAD(this.enemy) || IS_SPEC(this.enemy) || IS_OBSERVER(this.enemy))
         this.enemy = NULL;
 
     // Pick the closest valid target.