Don't show enemy's number of ammo
authorunc0rr
Sat, 20 Jun 2009 07:50:03 +0000
changeset 2176 fc082baf448c
parent 2175 9e64d9f1bcab
child 2177 c045698e044f
Don't show enemy's number of ammo
hedgewars/uAmmos.pas
--- a/hedgewars/uAmmos.pas	Sat Jun 20 07:45:05 2009 +0000
+++ b/hedgewars/uAmmos.pas	Sat Jun 20 07:50:03 2009 +0000
@@ -236,7 +236,7 @@
 	with Ammo^[CurSlot, CurAmmo] do
 		begin
 		s:= trammo[Ammoz[AmmoType].NameId];
-		if Count <> AMMO_INFINITE then
+		if (Count <> AMMO_INFINITE) and not (Hedgehog.Team^.ExtDriven or (Hedgehog.BotLevel > 0)) then
 			s:= s + ' (' + IntToStr(Count) + ')';
 		if (Propz and ammoprop_Timerable) <> 0 then
 			s:= s + ', ' + inttostr(Timer div 1000) + ' ' + trammo[sidSeconds];