Small optimization (no need to draw last point of the path)
authorunc0rr
Wed, 14 May 2014 21:41:42 +0400
changeset 10243 9a3ba4e76e38
parent 10242 0ab0d7fa1c62
child 10244 f7b5b4b88171
Small optimization (no need to draw last point of the path)
hedgewars/uLandPainted.pas
--- a/hedgewars/uLandPainted.pas	Wed May 14 01:12:21 2014 +0400
+++ b/hedgewars/uLandPainted.pas	Wed May 14 21:41:42 2014 +0400
@@ -111,7 +111,6 @@
             begin
             AddFileLog('[DRAW] Line to: ('+inttostr(pe^.point.X)+','+inttostr(pe^.point.Y)+'), radius = '+inttostr(radius));
             DrawThickLine(prevPoint.X, prevPoint.Y, pe^.point.X, pe^.point.Y, radius, color);
-            FillRoundInLand(pe^.point.X, pe^.point.Y, radius, color)
             end;
 
         prevPoint:= pe^.point;