evil math strikes again
authorkoda
Tue, 20 Oct 2009 21:40:35 +0000
changeset 2571 349b4c586ef5
parent 2570 7093e3413594
child 2572 af96861683f8
evil math strikes again
hedgewars/uWorld.pas
--- a/hedgewars/uWorld.pas	Tue Oct 20 21:23:22 2009 +0000
+++ b/hedgewars/uWorld.pas	Tue Oct 20 21:40:35 2009 +0000
@@ -534,7 +534,7 @@
    r.y:= 0;
    r.w:= WindBarWidth;
    r.h:= 13;
-   DrawSpriteFromRect(sprWindR, r, (cScreenWidth shr 1) - 103, cScreenHeight - offset - 2, 13, 0);
+   DrawSpriteFromRect(sprWindR, r, (cScreenWidth shr 1) - 103, cScreenHeight - offset + 2, 13, 0);
    end else
  if WindBarWidth < 0 then
    begin
@@ -544,7 +544,7 @@
    r.y:= 0;
    r.w:= - WindBarWidth;
    r.h:= 13;
-   DrawSpriteFromRect(sprWindL, r, (cScreenWidth shr 1) - 106 + WindBarWidth, cScreenHeight - offset - 2, 13, 0);
+   DrawSpriteFromRect(sprWindL, r, (cScreenWidth shr 1) - 106 + WindBarWidth, cScreenHeight - offset + 2, 13, 0);
    end;
 
 // AmmoMenu