Engine:
authorsmxx
Wed, 31 Mar 2010 11:59:32 +0000
changeset 3204 65222383bf7d
parent 3203 e98ac205ba29
child 3205 ada12d757574
Engine: * Fixed cursor shown twice in some cases while weapon menu is shown
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);