hedgewars/uGearsHedgehog.pas
changeset 7339 5984b749ad9b
parent 7337 c224cd2d32f3
child 7347 88685fbb2679
child 7362 53bcfc714cb3
--- a/hedgewars/uGearsHedgehog.pas	Wed Jul 04 10:56:42 2012 -0400
+++ b/hedgewars/uGearsHedgehog.pas	Wed Jul 04 12:41:47 2012 -0400
@@ -605,7 +605,10 @@
                     or (HH^.Hedgehog^.Team^.Clan^.ClanIndex = LocalClan)
                     or (GameType = gmtDemo)  then
                         begin
-                        s:= trammo[Ammoz[a].NameId] + ' (+' + IntToStr(Ammoz[a].NumberInCase) + ')';
+                        if Gear^.Power <> 0 then
+                            s:= trammo[Ammoz[a].NameId] + ' (+' + IntToStr(Gear^.Power) + ')'
+                        else
+                            s:= trammo[Ammoz[a].NameId] + ' (+' + IntToStr(Ammoz[a].NumberInCase) + ')';
                         AddCaption(s, HH^.Hedgehog^.Team^.Clan^.Color, capgrpAmmoinfo);
 
                         // show ammo icon