clicking on arrows in editor moves the gem

This commit is contained in:
nehalmistry 2002-06-21 00:07:23 +00:00
parent 4d732c263c
commit 1db2b95300

View file

@ -382,10 +382,7 @@ local void DrawTileIcons(void)
*/
local void DrawUnitIcons(void)
{
int x;
int y;
int i;
int j;
int x, y, i, j, percent;
char buf[256];
Icon *icon;
@ -547,7 +544,9 @@ local void DrawUnitIcons(void)
} else {
VideoDraw(MenuButtonGfx.Sprite, MBUTTON_RIGHT_ARROW, x + j - 20, y);
}
i = (50 * (j - 54)) / 100;
percent = UnitIndex * 100 / MaxUnitIndex;
i = (percent * (j - 54)) / 100;
VideoDraw(MenuButtonGfx.Sprite, MBUTTON_S_KNOB, x + 18 + i, y + 1);
//