# HG changeset patch
# User unc0rr
# Date 1242507283 0
# Node ID 9d683de175d7afb355a17798ca0018de5c62ac15
# Parent  7524a783bd8cd83182a2ced709c77ce02df20735
Fix rope disappearing bug

diff -r 7524a783bd8c -r 9d683de175d7 hedgewars/GSHandlers.inc
--- a/hedgewars/GSHandlers.inc	Sat May 16 19:03:08 2009 +0000
+++ b/hedgewars/GSHandlers.inc	Sat May 16 20:54:43 2009 +0000
@@ -979,15 +979,17 @@
 CheckCollision(Gear);
 
 if (Gear^.State and gstCollision) <> 0 then
-	begin
-	Gear^.doStep:= @doStepRopeWork;
-	with HHGear^ do State:= State and not (gstAttacking or gstHHHJump);
+	if Gear^.Elasticity < _10 then
+		Gear^.Elasticity:= _10000
+	else
+		begin
+		Gear^.doStep:= @doStepRopeWork;
+		with HHGear^ do State:= State and not (gstAttacking or gstHHHJump);
 
-	RemoveFromAmmo;
-	
-	if Gear^.Elasticity < _10 then
-		Gear^.Elasticity:= _10000;
-	end;
+		RemoveFromAmmo;
+		
+		exit
+		end;
 
 if (Gear^.Elasticity > Gear^.Friction)
 or ((Gear^.Message and gm_Attack) = 0)