fixed showmission so it actually displays the right icons
authorHenek
Wed, 22 Dec 2010 15:42:47 +0100
changeset 4626 775f43e90383
parent 4625 f3ff30611c75
child 4627 578bc729d9c6
fixed showmission so it actually displays the right icons
hedgewars/uWorld.pas
--- a/hedgewars/uWorld.pas	Wed Dec 22 02:16:07 2010 -0500
+++ b/hedgewars/uWorld.pas	Wed Dec 22 15:42:47 2010 +0100
@@ -1102,8 +1102,8 @@
     end
 else
     begin
-    r.x:= ((-icon - 1) shr 5) * 32;
-    r.y:= ((-icon - 1) mod 32) * 32;
+    r.x:= ((-icon - 1) shr 4) * 32;
+    r.y:= ((-icon - 1) mod 16) * 32;
     missionTex:= RenderHelpWindow(caption, subcaption, text, '', 0, SpritesData[sprAMAmmos].Surface, @r)
     end;
 end;