X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fturrets%2Fturret%2Fhellion_weapon.qc;h=9e737ea6cf12e921fb2e48828b739ef382a5f0e3;hb=fc15d72b041c9a748b605ba28735380fbe5b5b01;hp=0b112f22609178d55ebecb76a976187aaa92731e;hpb=17308b9ad60c2f773be0de39b811a9752e3037af;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/turrets/turret/hellion_weapon.qc b/qcsrc/common/turrets/turret/hellion_weapon.qc index 0b112f226..9e737ea6c 100644 --- a/qcsrc/common/turrets/turret/hellion_weapon.qc +++ b/qcsrc/common/turrets/turret/hellion_weapon.qc @@ -55,11 +55,11 @@ void turret_hellion_missile_think(entity this) turret_projectile_explode(this); // Enemy dead? just keep on the current heading then. - if ((this.enemy == world) || (IS_DEAD(this.enemy))) + if ((this.enemy == NULL) || (IS_DEAD(this.enemy))) { // Make sure we dont return to tracking a respawned player - this.enemy = world; + this.enemy = NULL; // Turn model this.angles = vectoangles(this.velocity);