hedgewars/CCHandlers.inc
changeset 4210 caa9b08990eb
parent 4208 dd54999c2822
child 4241 835fd7a0e1bf
equal deleted inserted replaced
4209:f133a26e05dd 4210:caa9b08990eb
   141 procedure chScript(var s: shortstring);
   141 procedure chScript(var s: shortstring);
   142 begin
   142 begin
   143 if s[1]='"' then Delete(s, 1, 1);
   143 if s[1]='"' then Delete(s, 1, 1);
   144 if s[byte(s[0])]='"' then Delete(s, byte(s[0]), 1);
   144 if s[byte(s[0])]='"' then Delete(s, byte(s[0]), 1);
   145 ScriptLoad(s)
   145 ScriptLoad(s)
   146 end;
       
   147 
       
   148 procedure chTurnTime(var s: shortstring);
       
   149 var temp: Longint;
       
   150 begin
       
   151 val(s, temp);
       
   152 cHedgehogTurnTime:= temp * 1000;
       
   153 end;
   146 end;
   154 
   147 
   155 procedure chAddHH(var id: shortstring);
   148 procedure chAddHH(var id: shortstring);
   156 var s: shortstring;
   149 var s: shortstring;
   157     Gear: PGear;
   150     Gear: PGear;