Release v2.2

Fixes an error with the display of hitpoints
This commit is contained in:
Koen Yskout
2018-03-23 18:19:55 +01:00
parent f45fa3fa96
commit bfe9b06404

View File

@@ -207,7 +207,7 @@ public class PlayGameScreenPainter extends AbstractPainter<PlayGameScreen> {
double hitPoints = sprite.getHitPoints().doubleValue();
double maxHitPoints = 2000;
hitPoints = Math.max(hitPoints, maxHitPoints);
hitPoints = Math.min(hitPoints, maxHitPoints);
RoundRectangle2D hitpointsBarFill = new RoundRectangle2D.Double(x
- ACTION_BAR_WIDTH / 2, y + spriteHeight / 2