Better rope
authorunc0rr
Sat, 17 May 2008 22:21:45 +0000
changeset 940 769adb0ad082
parent 939 7e6848823e26
child 941 b5222ddafe1f
Better rope
hedgewars/GSHandlers.inc
--- a/hedgewars/GSHandlers.inc	Sat May 17 17:32:56 2008 +0000
+++ b/hedgewars/GSHandlers.inc	Sat May 17 22:21:45 2008 +0000
@@ -598,8 +598,8 @@
 cc:= cc * len; // rope vector plus hedgehog direction vector normalized
 cs:= cs * len;
 
-nx:= hwAbs(cs) * hwSign(HHGear^.dX) * 3; // hedgehog direction normalized with length 3
-ny:= hwAbs(cc) * hwSign(HHGear^.dY) * 3;
+nx:= hwAbs(cs) * hwSign(HHGear^.dX) * 5; // hedgehog direction normalized with length 3
+ny:= hwAbs(cc) * hwSign(HHGear^.dY) * 5;
 
 flCheck:= not flCheck;
 if flCheck then  // check whether rope needs dividing
@@ -678,9 +678,9 @@
    HHGear^.dY:= -_0_6 * HHGear^.dY;
 
 len:= Distance(HHGear^.dX, HHGear^.dY);
-if len > _0_5 then
+if len > _0_8 then
    begin
-   len:= _0_5 / len;
+   len:= _0_8 / len;
    HHGear^.dX:= HHGear^.dX * len;
    HHGear^.dY:= HHGear^.dY * len;
    end;