--- 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);