hedgewars/uAmmos.pas
branch0.9.14.1
changeset 4330 1e03ca5d4311
parent 4234 60920aeb1606
child 4339 58d4733c9cad
equal deleted inserted replaced
4328:d1815568cd2d 4330:1e03ca5d4311
   169       begin
   169       begin
   170       for i:= 0 to cMaxHHIndex do
   170       for i:= 0 to cMaxHHIndex do
   171           if Hedgehogs[i].Gear <> nil then
   171           if Hedgehogs[i].Gear <> nil then
   172              begin
   172              begin
   173              Hedgehogs[i].Ammo:= GetAmmoByNum(Hedgehogs[i].AmmoStore);
   173              Hedgehogs[i].Ammo:= GetAmmoByNum(Hedgehogs[i].AmmoStore);
   174              Hedgehogs[i].CurAmmoType:= amNothing;
   174              if (GameFlags and gfPlaceHog) <> 0 then
       
   175                 Hedgehogs[i].CurAmmoType:= amTeleport
       
   176              else
       
   177                 Hedgehogs[i].CurAmmoType:= amNothing
   175              end
   178              end
   176       end
   179       end
   177 end;
   180 end;
   178 
   181 
   179 procedure AddAmmo(var Hedgehog: THedgehog; ammo: TAmmoType);
   182 procedure AddAmmo(var Hedgehog: THedgehog; ammo: TAmmoType);