hedgewars/HHHandlers.inc
changeset 2853 953a6d71396f
parent 2827 45817d8386c7
child 2854 7aac108149d9
equal deleted inserted replaced
2852:c6dff591f564 2853:953a6d71396f
   310 case Gear^.Pos of
   310 case Gear^.Pos of
   311        posCaseUtility,
   311        posCaseUtility,
   312        posCaseAmmo: begin
   312        posCaseAmmo: begin
   313                     a:= TAmmoType(Gear^.State);
   313                     a:= TAmmoType(Gear^.State);
   314                     AddAmmo(PHedgehog(HH^.Hedgehog)^, a);
   314                     AddAmmo(PHedgehog(HH^.Hedgehog)^, a);
   315                     if (not (PHedgehog(HH^.Hedgehog)^.Team^.ExtDriven
   315 // Possibly needs to check shared clan ammo game flag once added.
       
   316 // On the other hand, no obvious reason that clan members shouldn't know what ammo another clan member picked up
       
   317                     if (not (PHedgehog(HH^.Hedgehog)^.Team^.ExtDriven 
       
   318                       or (PHedgehog(HH^.Hedgehog)^.Team^.Clan^.ClanIndex = LocalClan-1)
   316                       or (PHedgehog(HH^.Hedgehog)^.BotLevel > 0)))
   319                       or (PHedgehog(HH^.Hedgehog)^.BotLevel > 0)))
   317                     or (GameType = gmtDemo)  then
   320                     or (GameType = gmtDemo)  then
   318                        begin
   321                        begin
   319                        s:= trammo[Ammoz[a].NameId] + '(+' + IntToStr(Ammoz[a].NumberInCase) + ')';
   322                        s:= trammo[Ammoz[a].NameId] + '(+' + IntToStr(Ammoz[a].NumberInCase) + ')';
   320                        AddCaption(s, PHedgehog(HH^.Hedgehog)^.Team^.Clan^.Color, capgrpAmmoinfo);
   323                        AddCaption(s, PHedgehog(HH^.Hedgehog)^.Team^.Clan^.Color, capgrpAmmoinfo);