extra check suggested by unc0rr
authornemo
Mon, 22 Jun 2009 13:49:16 +0000
changeset 2190 cfcad6142d48
parent 2189 bf6eafc3b2e6
child 2191 20c62f787a4d
extra check suggested by unc0rr
hedgewars/GSHandlers.inc
--- a/hedgewars/GSHandlers.inc	Mon Jun 22 00:27:55 2009 +0000
+++ b/hedgewars/GSHandlers.inc	Mon Jun 22 13:49:16 2009 +0000
@@ -2242,7 +2242,7 @@
 	or CheckGearDrowning(HHGear)
     or (TurnTimeLeft = 0) 
     // allow brief ground touches - to be fair on this, might need another counter
-    or (((GameTicks and $1FF) = 0) and TestCollisionYwithGear(HHGear, 1))
+    or (((GameTicks and $1FF) = 0) and (not HHGear^.dY.isNegative) and TestCollisionYwithGear(HHGear, 1))
 	or ((Gear^.Message and gm_Attack) <> 0) then
 	begin
 	with HHGear^ do