hedgewars/uGearsHedgehog.pas
changeset 8051 f26422ef0333
parent 8030 165aeaaaf445
child 8096 453917e94e55
child 8161 0b8beacff8a5
equal deleted inserted replaced
8048:e14daa2508fc 8051:f26422ef0333
   101         begin
   101         begin
   102         if CurAmmoType = amKnife then
   102         if CurAmmoType = amKnife then
   103             LoadHedgehogHat(HHGear^.Hedgehog^, 'Reserved/chef')
   103             LoadHedgehogHat(HHGear^.Hedgehog^, 'Reserved/chef')
   104         else if prevAmmo = amKnife then
   104         else if prevAmmo = amKnife then
   105             LoadHedgehogHat(HHGear^.Hedgehog^, Hat);
   105             LoadHedgehogHat(HHGear^.Hedgehog^, Hat);
       
   106         end;
       
   107     // Try again in the next slot
       
   108     if CurAmmoType = prevAmmo then 
       
   109         begin
       
   110         if slot >= cMaxSlotIndex then slot:= 0 else inc(slot);
       
   111         HHGear^.MsgParam:= slot;
       
   112         ChangeAmmo(HHGear)
   106         end
   113         end
   107     end
   114     end
   108 end;
   115 end;
   109 
   116 
   110 procedure HHSetWeapon(HHGear: PGear);
   117 procedure HHSetWeapon(HHGear: PGear);