]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Remove a redundant check, already performed before wr_aim execution
authorterencehill <piuntn@gmail.com>
Mon, 22 Aug 2022 13:46:27 +0000 (15:46 +0200)
committerterencehill <piuntn@gmail.com>
Mon, 22 Aug 2022 13:46:27 +0000 (15:46 +0200)
qcsrc/common/weapons/weapon/devastator.qc

index cff2398a640831b2be0a29979169677237984276..9ad68db2741d4e73f2c3514e15177b5e5f4ec14d 100644 (file)
@@ -378,7 +378,7 @@ METHOD(Devastator, wr_aim, void(entity thiswep, entity actor, .entity weaponenti
     float spd = WEP_CVAR(devastator, speed);
     // simulate rocket guide by calculating rocket trajectory with higher speed
     // 20 times faster at 90 degrees guide rate
-    if (actor.bot_aimtarg && WEP_CVAR(devastator, guiderate) > 0)
+    if (WEP_CVAR(devastator, guiderate) > 0)
         spd *= sqrt(WEP_CVAR(devastator, guiderate)) * (20 / 9.489); // 9.489 ~= sqrt(90)
     // no need to fire with high accuracy on large distances if rockets can be guided
     bool shot_accurate = (WEP_CVAR(devastator, guiderate) < 50);