Fix rope bug which allowed hedgehog to go into land
authorunc0rr
Sat, 10 Jan 2009 15:36:28 +0000
changeset 1634 486a89f0e843
parent 1633 c1de4078b0fd
child 1635 cc5976f292f9
Fix rope bug which allowed hedgehog to go into land
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