hedgewars/uConsole.pas
changeset 3818 e668970413e6
parent 3777 5276f2150d65
child 3825 fd6c20cd90e3
--- a/hedgewars/uConsole.pas	Fri Sep 03 00:01:04 2010 +0200
+++ b/hedgewars/uConsole.pas	Fri Sep 03 00:31:13 2010 +0200
@@ -89,6 +89,7 @@
 var Len: LongInt;
     done: boolean;
 begin
+{$IFNDEF NOCONSOLE}
     {$IFDEF DEBUGFILE}AddFileLog('Console write: ' + s);{$ENDIF}
     Write(s);
     done:= false;
@@ -106,16 +107,19 @@
         end;
         done:= (Length(s) = 0);
     end;
+{$ENDIF}
 end;
 
 procedure WriteLnToConsole(s: shortstring);
 begin
+{$IFNDEF NOCOSOLE}
     WriteToConsole(s);
     WriteLn;
     inc(CurrLine);
     if CurrLine = cLinesCount then
         CurrLine:= 0;
     PByte(@ConsoleLines[CurrLine].s)^:= 0
+{$ENDIF}
 end;
 
 procedure ParseCommand(CmdStr: shortstring; TrustedSource: boolean);