# HG changeset patch # User smxx # Date 1270036772 0 # Node ID 65222383bf7d94162068414a3c4f4863b4b8a399 # Parent e98ac205ba29ccb36bb317d652181faef7ad3c8a Engine: * Fixed cursor shown twice in some cases while weapon menu is shown diff -r e98ac205ba29 -r 65222383bf7d hedgewars/uWorld.pas --- a/hedgewars/uWorld.pas Wed Mar 31 11:34:58 2010 +0000 +++ b/hedgewars/uWorld.pas Wed Mar 31 11:59:32 2010 +0000 @@ -846,17 +846,17 @@ if isCursorVisible then begin if not bShowAmmoMenu then + begin with CurrentHedgehog^ do if (Gear^.State and gstHHChooseTarget) <> 0 then begin i:= Ammo^[CurSlot, CurAmmo].Pos; with Ammoz[Ammo^[CurSlot, CurAmmo].AmmoType] do if PosCount > 1 then - DrawSprite(PosSprite, CursorPoint.X - (SpritesData[PosSprite].Width shr 1), - cScreenHeight - CursorPoint.Y - (SpritesData[PosSprite].Height shr 1), - i); + DrawSprite(PosSprite, CursorPoint.X - (SpritesData[PosSprite].Width shr 1), cScreenHeight - CursorPoint.Y - (SpritesData[PosSprite].Height shr 1),i); end; - DrawSprite(sprArrow, CursorPoint.X, cScreenHeight - CursorPoint.Y, (RealTicks shr 6) mod 8) + DrawSprite(sprArrow, CursorPoint.X, cScreenHeight - CursorPoint.Y, (RealTicks shr 6) mod 8) + end end; glDisable(GL_TEXTURE_2D);