fix rope pattern
authoralfadur
Wed, 15 May 2019 00:09:54 +0300
changeset 14954 37ae92c11a36
parent 14953 f27f00fabc0d
child 14955 ef3352839616
fix rope pattern
hedgewars/uGearsRender.pas
--- a/hedgewars/uGearsRender.pas	Tue May 14 22:42:19 2019 +0200
+++ b/hedgewars/uGearsRender.pas	Wed May 15 00:09:54 2019 +0300
@@ -163,7 +163,7 @@
             begin
             inc(roplen);
             if (roplen mod cRopeNodeStep) = 0 then
-                DrawSpriteRotatedF(sprRopeNode, x, y, roplen mod cRopeNodeStep, 1, angle);
+                DrawSpriteRotatedF(sprRopeNode, x, y, roplen div cRopeNodeStep, 1, angle);
             end
     end;
     DrawRopeLine:= roplen;