Fix rope animation
authorunc0rr
Sun, 28 Dec 2008 15:58:40 +0000
changeset 1554 5657cd89668d
parent 1553 77f326c7f0ef
child 1555 0a62938e695a
Fix rope animation
hedgewars/GSHandlers.inc
--- a/hedgewars/GSHandlers.inc	Sun Dec 28 15:57:10 2008 +0000
+++ b/hedgewars/GSHandlers.inc	Sun Dec 28 15:58:40 2008 +0000
@@ -666,6 +666,9 @@
 tx:= tx * len; // rope vector plus hedgehog direction vector normalized
 ty:= ty * len;
 
+Gear^.dX:= tx; // for visual purposes only
+Gear^.dY:= ty;
+
 haveDivided:= false;
 	// check whether rope needs dividing
 	len:= _1 / Distance(ropeDx, ropeDy); // old rope pos