hedgewars/uGearsHedgehog.pas
changeset 7337 c224cd2d32f3
parent 7272 71df899c4163
child 7339 5984b749ad9b
--- a/hedgewars/uGearsHedgehog.pas	Tue Jul 03 22:44:50 2012 +0400
+++ b/hedgewars/uGearsHedgehog.pas	Wed Jul 04 10:56:42 2012 -0400
@@ -596,7 +596,8 @@
                         else
                             a:= GetAmmo(HH^.Hedgehog)
                         end;
-                    AddAmmo(HH^.Hedgehog^, a);
+                    if Gear^.Power <> 0 then AddAmmo(HH^.Hedgehog^, a, Gear^.Power)
+                    else AddAmmo(HH^.Hedgehog^, a);
 // 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 (HH^.Hedgehog^.Team^.ExtDriven