UnitSpawnAbility 'type' field JSON compat / Fixed health bar out of bounds
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user