Skip to content
This repository has been archived by the owner on Mar 19, 2023. It is now read-only.

Commit

Permalink
Game: Fixed some formatting related bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
fgsfdsfgs committed Jan 2, 2016
1 parent 31ed72e commit 58ebe04
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion DF Sources/g_console.pas
Expand Up @@ -728,6 +728,8 @@ function ParseString(Str: String): SArray;
SetLength(Result, Length(Result)+1);
Result[High(Result)] := GetStr(Str);
end;
if Length(Result) > 0 then
Result[0] := Unformat(Result[0]);
end;

procedure g_Console_Add(L: String; Show: Boolean = False);
Expand Down Expand Up @@ -823,7 +825,7 @@ procedure g_Console_Process(L: String; Quiet: Boolean = False);

if not Quiet then
begin
g_Console_Add('> '+L);
g_Console_Add('> '+Unformat(L));
Line := '';
CPos := 1;
end;
Expand Down
2 changes: 1 addition & 1 deletion Engine Source/e_graphics.pas
Expand Up @@ -1572,7 +1572,7 @@ procedure e_TextureFontPrintFmt(X, Y: Integer; Text: string; FontID: DWORD; Shad

'l':
begin
c.R := c.R * 2; c.G := c.G * 2; c.B := c.B * 2;
c.R := (c.R * 2) and 255; c.G := (c.G * 2) and 255; c.B := (c.B * 2) and 255;
end;

else b := False;
Expand Down

0 comments on commit 58ebe04

Please sign in to comment.