hedgewars/CCHandlers.inc
changeset 167 805fa9a27e9e
parent 166 2920ab2bf329
child 174 0b2c5b22f644
equal deleted inserted replaced
166:2920ab2bf329 167:805fa9a27e9e
   132 SplitBySpace(id, s);
   132 SplitBySpace(id, s);
   133 if s[1]='"' then Delete(s, 1, 1);
   133 if s[1]='"' then Delete(s, 1, 1);
   134 if s[byte(s[0])]='"' then Delete(s, byte(s[0]), 1);
   134 if s[byte(s[0])]='"' then Delete(s, byte(s[0]), 1);
   135 b:= KeyNameToCode(id);
   135 b:= KeyNameToCode(id);
   136 if b = 0 then OutError(errmsgUnknownVariable + ' "' + id + '"')
   136 if b = 0 then OutError(errmsgUnknownVariable + ' "' + id + '"')
   137          else CurrentTeam.Aliases[b]:= s
   137          else CurrentTeam.Binds[b]:= s
   138 end;
   138 end;
   139 
   139 
   140 procedure chLeft_p(var s: shortstring);
   140 procedure chLeft_p(var s: shortstring);
   141 begin
   141 begin
   142 if CheckNoTeamOrHH then exit;
   142 if CheckNoTeamOrHH then exit;