Add logging of map drawing process
authorunc0rr
Thu, 23 Dec 2010 22:01:19 +0300
changeset 4649 82bf0a0fa8b0
parent 4648 d8e1b43482d2
child 4650 0167cbb6aee3
Add logging of map drawing process
hedgewars/uLandPainted.pas
--- a/hedgewars/uLandPainted.pas	Thu Dec 23 21:54:57 2010 +0300
+++ b/hedgewars/uLandPainted.pas	Thu Dec 23 22:01:19 2010 +0300
@@ -148,9 +148,15 @@
     while(pe <> nil) do
         begin
         if (pe^.point.flags and $80 <> 0) then
+            begin
+            AddFileLog('[DRAW] Move to: ('+inttostr(pe^.point.X)+','+inttostr(pe^.point.Y)+')');
             FillRoundInLand(pe^.point.X, pe^.point.Y, 34, lfBasic)
+            end
             else
+            begin
+            AddFileLog('[DRAW] Line to: ('+inttostr(pe^.point.X)+','+inttostr(pe^.point.Y)+')');
             DrawLineOnLand(prevPoint.X, prevPoint.Y, pe^.point.X, pe^.point.Y);
+            end;
 
         prevPoint:= pe^.point;
         pe:= pe^.next;