hedgewars/uWorld.pas
changeset 3629 86212d2b116a
parent 3611 ed00aa2b339e
child 3638 33ee433749ba
equal deleted inserted replaced
3628:2b4d878ba565 3629:86212d2b116a
   353             begin
   353             begin
   354             amSel:= Ammo^[Slot, Pos].AmmoType;
   354             amSel:= Ammo^[Slot, Pos].AmmoType;
   355             RenderWeaponTooltip(amSel)
   355             RenderWeaponTooltip(amSel)
   356             end;
   356             end;
   357             
   357             
   358         {$IFNDEF IPHONEOS}
   358 {$IFDEF IPHONEOS}
       
   359         DrawTexture(cScreenWidth div 2 - (AMWidth - 10) + AMxShift, AMyOffset - 25, Ammoz[Ammo^[Slot, Pos].AmmoType].NameTex);
       
   360 
       
   361         if Ammo^[Slot, Pos].Count < AMMO_INFINITE then
       
   362             DrawTexture(cScreenWidth div 2 + AMxOffset - 45, AMyOffset - 25, CountTexz[Ammo^[Slot, Pos].Count]);
       
   363 {$ELSE}
   359         DrawTexture(cScreenWidth div 2 - (AMWidth - 10) + AMxShift, cScreenHeight - AMyOffset - 25, Ammoz[Ammo^[Slot, Pos].AmmoType].NameTex);
   364         DrawTexture(cScreenWidth div 2 - (AMWidth - 10) + AMxShift, cScreenHeight - AMyOffset - 25, Ammoz[Ammo^[Slot, Pos].AmmoType].NameTex);
   360 
   365 
   361         if Ammo^[Slot, Pos].Count < AMMO_INFINITE then
   366         if Ammo^[Slot, Pos].Count < AMMO_INFINITE then
   362             DrawTexture(cScreenWidth div 2 + AMxOffset - 45, cScreenHeight - AMyOffset - 25, CountTexz[Ammo^[Slot, Pos].Count]);
   367             DrawTexture(cScreenWidth div 2 + AMxOffset - 45, cScreenHeight - AMyOffset - 25, CountTexz[Ammo^[Slot, Pos].Count]);
   363         {$ENDIF}
   368 {$ENDIF}
   364 
   369 
   365         if bSelected and (Ammoz[Ammo^[Slot, Pos].AmmoType].SkipTurns - CurrentTeam^.Clan^.TurnNumber < 0) then
   370         if bSelected and (Ammoz[Ammo^[Slot, Pos].AmmoType].SkipTurns - CurrentTeam^.Clan^.TurnNumber < 0) then
   366             begin
   371             begin
   367             bShowAmmoMenu:= false;
   372             bShowAmmoMenu:= false;
   368             SetWeapon(Ammo^[Slot, Pos].AmmoType);
   373             SetWeapon(Ammo^[Slot, Pos].AmmoType);