hedgewars/GSHandlers.inc
changeset 4182 5240a84df702
parent 4168 49ad7bea4a33
child 4184 bc2b88eea8c4
--- a/hedgewars/GSHandlers.inc	Sun Nov 07 20:33:34 2010 +0300
+++ b/hedgewars/GSHandlers.inc	Sun Nov 07 20:36:16 2010 +0300
@@ -1769,7 +1769,7 @@
 
     AmmoShove(Gear, 30, 115);
 
-    HHGear^.State := HHGear^.State and not gstNoDamage;
+    HHGear^.State := (HHGear^.State and (not gstNoDamage)) or gstMoving;
     Gear^.Timer := 250;
     Gear^.doStep := @doStepIdle
 end;
@@ -1790,7 +1790,8 @@
         Gear^.X := Gear^.X + Gear^.dX * 5
     end;
 
-    HHGear^.State := HHGear^.State and not gstNoDamage;
+    HHGear^.State := (HHGear^.State and (not gstNoDamage)) or gstMoving;
+
     Gear^.Timer := 250;
     Gear^.doStep := @doStepIdle
 end;