Client: clamp the armor subpic size to 1.0 (fixes graphical artifacts in TFC)

This commit is contained in:
Marco Cawthorne 2023-02-07 09:08:00 -08:00
parent dfeff42e6a
commit c8397d2474
Signed by: eukara
GPG key ID: CE2032F0A2882A22

View file

@ -211,7 +211,7 @@ HUD_DrawArmor(void)
);
if (pl.armor > 0) {
float perc = (pl.armor / 100);
float perc = bound(0, (pl.armor / 100), 1.0);
drawsubpic(
pos + [-80,-9] + [0, 40 * (1.0-perc)],
[40, 40 * perc],