hedgewars/uAmmos.pas
changeset 10443 42dadeb6e8ae
parent 10123 64e72781d344
child 10560 9f09196d92a6
equal deleted inserted replaced
10441:d2f599997b54 10443:42dadeb6e8ae
   364             inc(slot)
   364             inc(slot)
   365             end
   365             end
   366         end;
   366         end;
   367     TryDo(slot <= cMaxSlotIndex, 'Ammo slot index overflow', true);
   367     TryDo(slot <= cMaxSlotIndex, 'Ammo slot index overflow', true);
   368     CurAmmoType:= Ammo^[slot, ammoidx].AmmoType;
   368     CurAmmoType:= Ammo^[slot, ammoidx].AmmoType;
   369     if CurAmmoType = amKnife then LoadHedgehogHat(Hedgehog, 'Reserved/chef')
       
   370     end
   369     end
   371 end;
   370 end;
   372 
   371 
   373 procedure ApplyAmmoChanges(var Hedgehog: THedgehog);
   372 procedure ApplyAmmoChanges(var Hedgehog: THedgehog);
   374 var s: ansistring;
   373 var s: ansistring;