Show picked up ammo in demo playing mode 0.9.5-release
authorunc0rr
Tue, 08 Jul 2008 16:49:51 +0000
changeset 1072 6bc4389344c7
parent 1071 cbd170f54a3c
child 1073 9e3f2e5af611
Show picked up ammo in demo playing mode
hedgewars/HHHandlers.inc
--- a/hedgewars/HHHandlers.inc	Tue Jul 08 16:01:45 2008 +0000
+++ b/hedgewars/HHHandlers.inc	Tue Jul 08 16:49:51 2008 +0000
@@ -237,8 +237,9 @@
        posCaseAmmo: begin
                     a:= TAmmoType(Gear^.State);
                     AddAmmo(PHedgehog(HH^.Hedgehog)^, a);
-                    if not (PHedgehog(HH^.Hedgehog)^.Team^.ExtDriven
-                      or (PHedgehog(HH^.Hedgehog)^.BotLevel > 0)) then
+                    if (not (PHedgehog(HH^.Hedgehog)^.Team^.ExtDriven
+                      or (PHedgehog(HH^.Hedgehog)^.BotLevel > 0)))
+                    or (GameType = gmtDemo)  then
                        begin
                        s:= trammo[Ammoz[a].NameId] + '(+' + IntToStr(Ammoz[a].NumberInCase) + ')';
                        AddCaption(s, PHedgehog(HH^.Hedgehog)^.Team^.Clan^.Color, capgrpAmmoinfo);