mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-29 13:00:43 +00:00
- fix inventory selector positioning in WW2GI.
This must have abused some quirk of the original code to be this far off...
This commit is contained in:
parent
40593b866f
commit
30e8111979
1 changed files with 1 additions and 1 deletions
|
@ -161,7 +161,7 @@ void DDukeCommonStatusBar::DrawInventory(const struct player_struct* p, double x
|
||||||
int select = 1 << (p->inven_icon - 1);
|
int select = 1 << (p->inven_icon - 1);
|
||||||
double alpha = select == i ? 1.0 : 0.7;
|
double alpha = select == i ? 1.0 : 0.7;
|
||||||
DrawGraphic(tileGetTexture(item_icons[bit+1]), x, y, align, alpha, 0, 0, scale, scale);
|
DrawGraphic(tileGetTexture(item_icons[bit+1]), x, y, align, alpha, 0, 0, scale, scale);
|
||||||
if (select == i) DrawGraphic(tileGetTexture(TILE_ARROW), x, y, align, alpha, 0, 0, scale, scale);
|
if (select == i) DrawGraphic(tileGetTexture(TILE_ARROW), isWW2GI()? x + 7.5 : x, isWW2GI()? y + 0.5 : y, align, alpha, 0, 0, scale, scale);
|
||||||
x += 22;
|
x += 22;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue