don't let forced hog movement (with no damage) suspend/halt shot charging
authorsheepluva
Sun, 30 Oct 2011 21:19:47 +0100
changeset 6244 23801d8b83d5
parent 6243 9777d802be1a
child 6245 6df227b5e4c9
don't let forced hog movement (with no damage) suspend/halt shot charging this also caused frozen turns in combination with bee, as reported by Djrulz1
hedgewars/HHHandlers.inc
--- a/hedgewars/HHHandlers.inc	Sun Oct 30 17:56:19 2011 +0100
+++ b/hedgewars/HHHandlers.inc	Sun Oct 30 21:19:47 2011 +0100
@@ -181,6 +181,7 @@
      if ((State and gstHHDriven) <> 0)and
         ((State and (gstAttacked or gstHHChooseTarget)) = 0) and
         (((State and gstMoving) = 0) or
+            (Power > 0) or
             (CurAmmoType = amTeleport) or 
             // Allow attacks while moving on ammo with AltAttack
             ((CurAmmoGear <> nil) and ((Ammoz[CurAmmoGear^.AmmoType].Ammo.Propz and ammoprop_AltAttack) <> 0)) or