summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 17e9f40)
raw | patch | inline | side by side (parent: 17e9f40)
author | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Mon, 2 Sep 2019 19:50:29 +0000 (22:50 +0300) | ||
committer | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Mon, 2 Sep 2019 19:50:29 +0000 (22:50 +0300) |
src/game/g_console.pas | patch | blob | history |
diff --git a/src/game/g_console.pas b/src/game/g_console.pas
index 47239783b94865e4625d9580479e87d3488c8f68..5cfce983eab76d411b4954307cd0345a08fe9adc 100644 (file)
--- a/src/game/g_console.pas
+++ b/src/game/g_console.pas
begin
if (Length(p) <> 2) then
begin
- conwritefln('%s %s', [me.cmd, PAnsiString(me.ptr)^]);
+ conwritefln('%s %s', [me.cmd, QuoteStr(PAnsiString(me.ptr)^)]);
end
else
begin
begin
WriteLn(f, commands[i].cmd, ' ', PVarSingle(commands[i].ptr).val^:0:6)
end
+ else if @commands[i].procEx = @strVarHandler then
+ begin
+ if Length(PAnsiString(commands[i].ptr)^) = 0 then
+ WriteLn(f, commands[i].cmd, ' ""')
+ else
+ WriteLn(f, commands[i].cmd, ' ', QuoteStr(PAnsiString(commands[i].ptr)^))
+ end
end
end;
CloseFile(f)