Fix slightly misplaced ammo count in ammo menu if count > 9
authorWuzzy <Wuzzy2@mail.ru>
Wed, 08 Aug 2018 13:02:24 +0200
changeset 13638 039ec6dd304b
parent 13637 28e4a9db4690
child 13639 05dd413393bf
Fix slightly misplaced ammo count in ammo menu if count > 9
hedgewars/uWorld.pas
--- a/hedgewars/uWorld.pas	Wed Aug 08 12:05:19 2018 +0200
+++ b/hedgewars/uWorld.pas	Wed Aug 08 13:02:24 2018 +0200
@@ -737,7 +737,7 @@
                         Ammoz[Ammo^[Slot, Pos].AmmoType].NameTex);
             if Ammo^[Slot, Pos].Count < AMMO_INFINITE then
                 DrawTexture(AmmoRect.x + AmmoRect.w - 20 - (CountTexz[Ammo^[Slot, Pos].Count]^.w),
-                            AmmoRect.y + AmmoRect.h - BORDERSIZE - (AMslotSize shr 1) - (CountTexz[Ammo^[Slot, Pos].Count]^.w shr 1),
+                            AmmoRect.y + AmmoRect.h - BORDERSIZE - (AMslotSize shr 1) - (CountTexz[Ammo^[Slot, Pos].Count]^.h shr 1),
                             CountTexz[Ammo^[Slot, Pos].Count]);
 
             if bSelected and (Ammoz[Ammo^[Slot, Pos].AmmoType].SkipTurns - CurrentTeam^.Clan^.TurnNumber < 0) then