Client: clamp the armor subpic size to 1.0 (fixes graphical artifacts in TFC)
This commit is contained in:
parent
dfeff42e6a
commit
c8397d2474
1 changed files with 1 additions and 1 deletions
|
@ -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],
|
||||
|
|
Loading…
Reference in a new issue