More bouncy rope, but you need to press vertical arrow and horizontal keys at once to bounce
authorunc0rr
Sun, 04 Jan 2009 14:24:44 +0000
changeset 1579 2f581b1f289e
parent 1578 f02806f66e00
child 1580 971e7f057a86
More bouncy rope, but you need to press vertical arrow and horizontal keys at once to bounce
hedgewars/GSHandlers.inc
--- a/hedgewars/GSHandlers.inc	Sun Jan 04 12:44:54 2009 +0000
+++ b/hedgewars/GSHandlers.inc	Sun Jan 04 14:24:44 2009 +0000
@@ -764,10 +764,12 @@
 	haveCollision:= true
 	end;
 
-if haveCollision and (Gear^.Message and (gm_Left or gm_Right) <> 0) then
+if haveCollision
+	and (Gear^.Message and (gm_Left or gm_Right) <> 0)
+	and (Gear^.Message and (gm_Up or gm_Down) <> 0) then
 	begin
-	HHGear^.dX:= SignAs(hwAbs(HHGear^.dX) + _0_15, HHGear^.dX);
-	HHGear^.dY:= SignAs(hwAbs(HHGear^.dY) + _0_15, HHGear^.dY)
+	HHGear^.dX:= SignAs(hwAbs(HHGear^.dX) + _0_2, HHGear^.dX);
+	HHGear^.dY:= SignAs(hwAbs(HHGear^.dY) + _0_2, HHGear^.dY)
 	end;
 
 len:= Distance(HHGear^.dX, HHGear^.dY);