hedgewars/HHHandlers.inc
changeset 2853 953a6d71396f
parent 2827 45817d8386c7
child 2854 7aac108149d9
--- a/hedgewars/HHHandlers.inc	Tue Feb 23 15:41:37 2010 +0000
+++ b/hedgewars/HHHandlers.inc	Tue Feb 23 19:25:38 2010 +0000
@@ -312,7 +312,10 @@
        posCaseAmmo: begin
                     a:= TAmmoType(Gear^.State);
                     AddAmmo(PHedgehog(HH^.Hedgehog)^, a);
-                    if (not (PHedgehog(HH^.Hedgehog)^.Team^.ExtDriven
+// Possibly needs to check shared clan ammo game flag once added.
+// On the other hand, no obvious reason that clan members shouldn't know what ammo another clan member picked up
+                    if (not (PHedgehog(HH^.Hedgehog)^.Team^.ExtDriven 
+                      or (PHedgehog(HH^.Hedgehog)^.Team^.Clan^.ClanIndex = LocalClan-1)
                       or (PHedgehog(HH^.Hedgehog)^.BotLevel > 0)))
                     or (GameType = gmtDemo)  then
                        begin