# HG changeset patch # User unc0rr # Date 1289144140 -10800 # Node ID dec8aafc6414649cddee75d19ce550c2cc94bd41 # Parent f2c8c70ec4de6b6d94aabc336828c800b5b8a364 Fix hanging in air after whip or bat attack diff -r f2c8c70ec4de -r dec8aafc6414 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;