hedgewars/uGearsHedgehog.pas
changeset 7337 c224cd2d32f3
parent 7272 71df899c4163
child 7339 5984b749ad9b
equal deleted inserted replaced
7335:3c6f08af7dac 7337:c224cd2d32f3
   594                         if Gear^.Pos = posCaseUtility then
   594                         if Gear^.Pos = posCaseUtility then
   595                             a:= GetUtility(HH^.Hedgehog)
   595                             a:= GetUtility(HH^.Hedgehog)
   596                         else
   596                         else
   597                             a:= GetAmmo(HH^.Hedgehog)
   597                             a:= GetAmmo(HH^.Hedgehog)
   598                         end;
   598                         end;
   599                     AddAmmo(HH^.Hedgehog^, a);
   599                     if Gear^.Power <> 0 then AddAmmo(HH^.Hedgehog^, a, Gear^.Power)
       
   600                     else AddAmmo(HH^.Hedgehog^, a);
   600 // Possibly needs to check shared clan ammo game flag once added.
   601 // Possibly needs to check shared clan ammo game flag once added.
   601 // On the other hand, no obvious reason that clan members shouldn't know what ammo another clan member picked up
   602 // On the other hand, no obvious reason that clan members shouldn't know what ammo another clan member picked up
   602                     if (not (HH^.Hedgehog^.Team^.ExtDriven 
   603                     if (not (HH^.Hedgehog^.Team^.ExtDriven 
   603                     or (HH^.Hedgehog^.BotLevel > 0)))
   604                     or (HH^.Hedgehog^.BotLevel > 0)))
   604                     or (HH^.Hedgehog^.Team^.Clan^.ClanIndex = LocalClan)
   605                     or (HH^.Hedgehog^.Team^.Clan^.ClanIndex = LocalClan)