hedgewars/uCommands.pas
changeset 4900 8ad0e23e6d63
parent 4650 0167cbb6aee3
child 4976 088d40d8aba2
equal deleted inserted replaced
4899:8163c9aaad0c 4900:8ad0e23e6d63
    58 if CmdStr[0]=#0 then exit;
    58 if CmdStr[0]=#0 then exit;
    59 c:= CmdStr[1];
    59 c:= CmdStr[1];
    60 if c in ['/', '$'] then Delete(CmdStr, 1, 1) else c:= '/';
    60 if c in ['/', '$'] then Delete(CmdStr, 1, 1) else c:= '/';
    61 s:= '';
    61 s:= '';
    62 SplitBySpace(CmdStr, s);
    62 SplitBySpace(CmdStr, s);
    63 {$IFDEF DEBUGFILE}AddFileLog('[Cmd] ' + c + CmdStr + ' (' + inttostr(length(s)) + ')');{$ENDIF}
    63 AddFileLog('[Cmd] ' + c + CmdStr + ' (' + inttostr(length(s)) + ')');
    64 t:= Variables;
    64 t:= Variables;
    65 while t <> nil do
    65 while t <> nil do
    66       begin
    66       begin
    67       if t^.Name = CmdStr then
    67       if t^.Name = CmdStr then
    68          begin
    68          begin