From: Mario Date: Tue, 19 Jun 2018 09:05:28 +0000 (+1000) Subject: Make sure the hunter-killer rocket loses its target if the player becomes a spectator... X-Git-Tag: xonotic-v0.8.5~2002 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ff8c8aa65707b6114d26fa545a11fda69bd0b4a1;p=xonotic%2Fxonotic-data.pk3dir.git Make sure the hunter-killer rocket loses its target if the player becomes a spectator/observer --- diff --git a/qcsrc/common/turrets/turret/hk_weapon.qc b/qcsrc/common/turrets/turret/hk_weapon.qc index 0e38ebfad..b68bfb773 100644 --- a/qcsrc/common/turrets/turret/hk_weapon.qc +++ b/qcsrc/common/turrets/turret/hk_weapon.qc @@ -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.