hedgewars/uTeams.pas
changeset 10443 42dadeb6e8ae
parent 10398 d9cf9ef08ba7
child 10581 f0b4c14a3c62
equal deleted inserted replaced
10441:d2f599997b54 10443:42dadeb6e8ae
   750     newCI:= (newHog^.Gear <> nil) and (newHog^.Gear^.CollisionIndex >= 0);
   750     newCI:= (newHog^.Gear <> nil) and (newHog^.Gear^.CollisionIndex >= 0);
   751     if oldCI then DeleteCI(CurrentHedgehog^.Gear);
   751     if oldCI then DeleteCI(CurrentHedgehog^.Gear);
   752     if newCI then DeleteCI(newHog^.Gear);
   752     if newCI then DeleteCI(newHog^.Gear);
   753     oldHH:= CurrentHedgehog;
   753     oldHH:= CurrentHedgehog;
   754     CurrentHedgehog:= newHog;
   754     CurrentHedgehog:= newHog;
   755    if (CurrentHedgehog <> nil) and (CurrentHedgehog^.CurAmmoType = amKnife) then
       
   756        LoadHedgehogHat(CurrentHedgehog^, 'Reserved/chef');
       
   757     if oldCI then AddCI(oldHH^.Gear);
   755     if oldCI then AddCI(oldHH^.Gear);
   758     if newCI then AddCI(newHog^.Gear)
   756     if newCI then AddCI(newHog^.Gear)
   759 end;
   757 end;
   760 
   758 
   761 
   759