diff options
Diffstat (limited to 'core/src/ch/asynk/tankontank')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Player.java | 2 | ||||
-rw-r--r-- | core/src/ch/asynk/tankontank/game/hud/Bg.java | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Player.java b/core/src/ch/asynk/tankontank/game/Player.java index d7b26f2..b8fed22 100644 --- a/core/src/ch/asynk/tankontank/game/Player.java +++ b/core/src/ch/asynk/tankontank/game/Player.java @@ -45,7 +45,7 @@ public class Player extends ch.asynk.tankontank.engine.Player public int getAp() { - return (apSpent + 1); + return ((apSpent < actionPoints) ? (apSpent + 1) : apSpent); } public int getTurn() diff --git a/core/src/ch/asynk/tankontank/game/hud/Bg.java b/core/src/ch/asynk/tankontank/game/hud/Bg.java index 5679d57..411683a 100644 --- a/core/src/ch/asynk/tankontank/game/hud/Bg.java +++ b/core/src/ch/asynk/tankontank/game/hud/Bg.java @@ -22,6 +22,7 @@ public class Bg extends Widget @Override public void draw(Batch batch) { + if (!visible) return; batch.draw(region, rect.x, rect.y, rect.width, rect.height); } } |