hedgewars/uAmmos.pas
changeset 10116 dd27562b6f21
parent 10108 c68cf030eded
child 10123 64e72781d344
equal deleted inserted replaced
10115:794af9339726 10116:dd27562b6f21
   396         s:= trammo[Ammoz[AmmoType].NameId];
   396         s:= trammo[Ammoz[AmmoType].NameId];
   397         if (Count <> AMMO_INFINITE) and (not (Hedgehog.Team^.ExtDriven or (Hedgehog.BotLevel > 0))) then
   397         if (Count <> AMMO_INFINITE) and (not (Hedgehog.Team^.ExtDriven or (Hedgehog.BotLevel > 0))) then
   398             s:= s + ' (' + IntToStr(Count) + ')';
   398             s:= s + ' (' + IntToStr(Count) + ')';
   399         if (Propz and ammoprop_Timerable) <> 0 then
   399         if (Propz and ammoprop_Timerable) <> 0 then
   400             s:= s + ', ' + IntToStr(Timer div 1000) + ' ' + trammo[sidSeconds];
   400             s:= s + ', ' + IntToStr(Timer div 1000) + ' ' + trammo[sidSeconds];
   401         AddCaption(Str2PChar(s), Team^.Clan^.Color, capgrpAmmoinfo);
   401         AddCaption(s, Team^.Clan^.Color, capgrpAmmoinfo);
   402         if (Propz and ammoprop_NeedTarget) <> 0 then
   402         if (Propz and ammoprop_NeedTarget) <> 0 then
   403             begin
   403             begin
   404             if Gear <> nil then Gear^.State:= Gear^.State or      gstHHChooseTarget;
   404             if Gear <> nil then Gear^.State:= Gear^.State or      gstHHChooseTarget;
   405             isCursorVisible:= true
   405             isCursorVisible:= true
   406             end
   406             end