fix 0.9.15 compilation when debugfile is not specified (there is a better fix already in trunk) 0.9.15
authorkoda
Sun, 26 Jun 2011 23:09:48 +0200
branch0.9.15
changeset 4725 20a0b49802a6
parent 4723 29ab0d49c3e6
child 4729 b2aabb0b8e9d
fix 0.9.15 compilation when debugfile is not specified (there is a better fix already in trunk)
hedgewars/uLandPainted.pas
--- a/hedgewars/uLandPainted.pas	Mon Dec 27 12:51:08 2010 -0500
+++ b/hedgewars/uLandPainted.pas	Sun Jun 26 23:09:48 2011 +0200
@@ -149,12 +149,12 @@
         begin
         if (pe^.point.flags and $80 <> 0) then
             begin
-            AddFileLog('[DRAW] Move to: ('+inttostr(pe^.point.X)+','+inttostr(pe^.point.Y)+')');
+            {$IFDEF DEBUGFILE}AddFileLog('[DRAW] Move to: ('+inttostr(pe^.point.X)+','+inttostr(pe^.point.Y)+')');{$ENDIF}
             FillRoundInLand(pe^.point.X, pe^.point.Y, 34, lfBasic)
             end
             else
             begin
-            AddFileLog('[DRAW] Line to: ('+inttostr(pe^.point.X)+','+inttostr(pe^.point.Y)+')');
+            {$IFDEF DEBUGFILE}AddFileLog('[DRAW] Line to: ('+inttostr(pe^.point.X)+','+inttostr(pe^.point.Y)+')');{$ENDIF}
             DrawLineOnLand(prevPoint.X, prevPoint.Y, pe^.point.X, pe^.point.Y);
             end;