remove 70c086d9b03f - I suspect the issue was actually part of more general prob probably fixed in cfc44db21d72 by jaree
authornemo
Thu, 04 Apr 2013 11:27:23 -0400
changeset 8854 31133afaa025
parent 8851 e9a97845e4f2
child 8857 0bdeea9d388e
child 8858 b216fe93bab1
remove 70c086d9b03f - I suspect the issue was actually part of more general prob probably fixed in cfc44db21d72 by jaree
hedgewars/uGearsRender.pas
--- a/hedgewars/uGearsRender.pas	Thu Apr 04 14:35:46 2013 +0200
+++ b/hedgewars/uGearsRender.pas	Thu Apr 04 11:27:23 2013 -0400
@@ -352,13 +352,7 @@
                     lx:= lx + ax;
                     ly:= ly + ay;
                     tx:= round(lx);
-                    ty:= round(ly);
-                    if (abs(tx-hx) > 1000) or (abs(hy-ty) > 1000) then
-                        begin
-                        DrawLine(hx, hy, tx, ty, 1.0, $FF, $00, $00, $C0);
-                        hx:= tx;
-                        hy:= ty
-                        end
+                    ty:= round(ly)
                     end;
                 // reached edge of land. assume infinite beam. Extend it way out past camera
                 if ((ty and LAND_HEIGHT_MASK) <> 0) or ((tx and LAND_WIDTH_MASK) <> 0) then
@@ -368,7 +362,6 @@
                     end;
 
                 //if (abs(lx-tx)>8) or (abs(ly-ty)>8) then
-                if (tx <> hx) or (ty <> hy) then
                     begin
                     DrawLine(hx, hy, tx, ty, 1.0, $FF, $00, $00, $C0);
                     end;