hedgewars/uIO.pas
changeset 7201 dc17ffdf0702
parent 7103 1c1afb5a1565
child 7628 bc7b1d228a2c
equal deleted inserted replaced
7199:f329fbf1ffb4 7201:dc17ffdf0702
   125                'L': GameType:= gmtLocal;
   125                'L': GameType:= gmtLocal;
   126                'D': GameType:= gmtDemo;
   126                'D': GameType:= gmtDemo;
   127                'N': GameType:= gmtNet;
   127                'N': GameType:= gmtNet;
   128                'S': GameType:= gmtSave;
   128                'S': GameType:= gmtSave;
   129                else OutError(errmsgIncorrectUse + ' IPC "T" :' + s[2], true) end;
   129                else OutError(errmsgIncorrectUse + ' IPC "T" :' + s[2], true) end;
       
   130      'V': begin
       
   131               if s[2] = '.' then
       
   132                   ParseCommand('campvar ' + copy(s, 3, length(s) - 2), true);
       
   133           end
   130      else
   134      else
   131      loTicks:= SDLNet_Read16(@s[byte(s[0]) - 1]);
   135      loTicks:= SDLNet_Read16(@s[byte(s[0]) - 1]);
   132      AddCmd(loTicks, s);
   136      AddCmd(loTicks, s);
   133      AddFileLog('[IPC in] '+s[1]+' ticks '+IntToStr(lastcmd^.loTime));
   137      AddFileLog('[IPC in] '+s[1]+' ticks '+IntToStr(lastcmd^.loTime));
   134      end
   138      end