hedgewars/CCHandlers.inc
changeset 2747 7889a3a9724f
parent 2738 bfccb2ec4334
child 2786 85f6425a4d74
equal deleted inserted replaced
2746:55593f8a490b 2747:7889a3a9724f
   119 begin
   119 begin
   120 if CurrentTeam = nil then OutError(errmsgIncorrectUse + ' "/voicepack"', true);
   120 if CurrentTeam = nil then OutError(errmsgIncorrectUse + ' "/voicepack"', true);
   121 if s[1]='"' then Delete(s, 1, 1);
   121 if s[1]='"' then Delete(s, 1, 1);
   122 if s[byte(s[0])]='"' then Delete(s, byte(s[0]), 1);
   122 if s[byte(s[0])]='"' then Delete(s, byte(s[0]), 1);
   123 CurrentTeam^.voicepack:= AskForVoicepack(s)
   123 CurrentTeam^.voicepack:= AskForVoicepack(s)
       
   124 end;
       
   125 
       
   126 procedure chFlag(var s: shortstring);
       
   127 begin
       
   128 if CurrentTeam = nil then OutError(errmsgIncorrectUse + ' "/flag"', true);
       
   129 if s[1]='"' then Delete(s, 1, 1);
       
   130 if s[byte(s[0])]='"' then Delete(s, byte(s[0]), 1);
       
   131 CurrentTeam^.flag:= s
   124 end;
   132 end;
   125 
   133 
   126 procedure chAddHH(var id: shortstring);
   134 procedure chAddHH(var id: shortstring);
   127 var s: shortstring;
   135 var s: shortstring;
   128     Gear: PGear;
   136     Gear: PGear;