hedgewars/GSHandlers.inc
changeset 8990 e64a1a851b69
parent 8987 47cf32305d99
child 8992 5b0be812dcdb
--- a/hedgewars/GSHandlers.inc	Tue May 14 06:33:59 2013 -0400
+++ b/hedgewars/GSHandlers.inc	Tue May 14 07:14:41 2013 -0400
@@ -3274,7 +3274,7 @@
     if // (Gear^.Health = 0)
         (HHGear^.Damage <> 0)
         //or CheckGearDrowning(HHGear)
-        or (cWaterLine + 512 < hwRound(HHGear^.Y))
+        or (cWaterLine + cVisibleWater * 4 < hwRound(HHGear^.Y))
         or (TurnTimeLeft = 0)
         // allow brief ground touches - to be fair on this, might need another counter
         or (((GameTicks and $1FF) = 0) and (not HHGear^.dY.isNegative) and (TestCollisionYwithGear(HHGear, 1) <> 0))