Fix hanging in air after whip or bat attack
authorunc0rr
Sun, 07 Nov 2010 18:35:40 +0300
changeset 4165 dec8aafc6414
parent 4164 f2c8c70ec4de
child 4167 207cd9358876
Fix hanging in air after whip or bat attack
hedgewars/uGears.pas
--- a/hedgewars/uGears.pas	Sun Nov 07 17:37:49 2010 +0300
+++ b/hedgewars/uGears.pas	Sun Nov 07 18:35:40 2010 +0300
@@ -1415,7 +1415,10 @@
     begin
     t^.ar[t^.Count]:= CurrentHedgehog^.Gear;
     inc(t^.Count)
-    end;
+    end else
+    with CurrentHedgehog^.Gear^ do
+        State:= State or gstMoving;
+
 i:= t^.Count;
 
 if (Ammo^.Kind = gtFlame) and (i > 0) then Ammo^.Health:= 0;