hedgewars/GSHandlers.inc
changeset 2301 7a4ad0772c88
parent 2283 2bcb75cead52
child 2329 1cfb7d184ee1
--- a/hedgewars/GSHandlers.inc	Tue Aug 11 19:56:01 2009 +0000
+++ b/hedgewars/GSHandlers.inc	Tue Aug 11 21:51:36 2009 +0000
@@ -2285,11 +2285,14 @@
 FollowGear:= HHGear;
 OnUsedAmmo(PHedgehog(HHGear^.Hedgehog)^);
 ApplyAmmoChanges(PHedgehog(HHGear^.Hedgehog)^);
-Gear^.State:= Gear^.State or gsttmpFlag;
 with HHGear^ do
 	begin
 	State:= State and not gstAttacking;
 	Message:= Message and not (gm_Attack or gm_Up or gm_Precise or gm_Left or gm_Right);
-    dY:= dY - _0_2
+    if (dY < _0_1) and (dY > -_0_1) then
+        begin
+        Gear^.State:= Gear^.State or gsttmpFlag;
+        dY:= dY - _0_2
+        end
 	end
 end;