Fix minor offset mismatch with wrapping laser
authorWuzzy <Wuzzy2@mail.ru>
Mon, 12 Oct 2020 01:01:28 +0200
changeset 15747 ed3c5c15dcbd
parent 15746 ff18f99f3f5d
child 15748 ff8bd08f7d98
Fix minor offset mismatch with wrapping laser
hedgewars/uGearsRender.pas
--- a/hedgewars/uGearsRender.pas	Mon Oct 12 00:46:19 2020 +0200
+++ b/hedgewars/uGearsRender.pas	Mon Oct 12 01:01:28 2020 +0200
@@ -566,7 +566,7 @@
                             if hogLR < 0 then
                                 lx:= RightX - (ax - (lx - LeftX))
                             else
-                                lx:= LeftX + (ax - (RightX - lx));
+                                lx:= LeftX + (-ax - (RightX - lx));
                             tx:= round(lx);
                             inc(wraps);
                             end