UnitSpawnAbility 'type' field JSON compat / Fixed health bar out of bounds

This commit is contained in:
Anuken
2021-02-26 18:51:14 -05:00
parent d06eee99ba
commit ae6be1db3b
4 changed files with 12 additions and 10 deletions

View File

@@ -643,6 +643,8 @@ public class HudFragment extends Fragment{
void drawInner(Color color, float fract){
if(fract < 0) return;
fract = Mathf.clamp(fract);
if(flip){
x += width;
width = -width;