summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/tankontank/game/hud/PlayerInfo.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/src/ch/asynk/tankontank/game/hud/PlayerInfo.java b/core/src/ch/asynk/tankontank/game/hud/PlayerInfo.java
index d6055fd..3c25b2c 100644
--- a/core/src/ch/asynk/tankontank/game/hud/PlayerInfo.java
+++ b/core/src/ch/asynk/tankontank/game/hud/PlayerInfo.java
@@ -90,14 +90,14 @@ public class PlayerInfo implements Disposable, Drawable
public void update(Player player, Position position)
{
unitDock.hide();
- turns.write("" + player.getCurrentTurn());
- aps.write("" + player.getAp());
+ turns.write(String.format("%d", player.getCurrentTurn()));
+ aps.write(String.format("%d", player.getAp()));
int r = player.reinforcement();
if (r == 0) {
reinforcement.visible = false;
} else {
reinforcement.visible = true;
- reinforcement.write("" + r);
+ reinforcement.write(String.format("%d", r));
}
if (player.is(Army.GE))