# HG changeset patch
# User unc0rr
# Date 1231601788 0
# Node ID 486a89f0e8436201698b983f6fbbbb27f2a757c0
# Parent  c1de4078b0fd400eed95af2a292ba085f2f54ca1
Fix rope bug which allowed hedgehog to go into land

diff -r c1de4078b0fd -r 486a89f0e843 hedgewars/GSHandlers.inc
--- a/hedgewars/GSHandlers.inc	Sat Jan 10 15:27:21 2009 +0000
+++ b/hedgewars/GSHandlers.inc	Sat Jan 10 15:36:28 2009 +0000
@@ -849,7 +849,9 @@
 		Gear^.Elasticity:= _10000;
 	end;
 
-if (Gear^.Elasticity > Gear^.Friction) or ((Gear^.Message and gm_Attack) = 0) then
+if (Gear^.Elasticity > Gear^.Friction)
+or ((Gear^.Message and gm_Attack) = 0)
+or (HHGear^.Damage > 0) then
 	begin
 	with PHedgehog(Gear^.Hedgehog)^.Gear^ do
 		begin