summaryrefslogtreecommitdiffstats
path: root/core/src/ch
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-10-16 20:02:35 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-10-16 20:02:35 +0200
commit8c67a8de75d61200bc4f1cda01ec617d9bf75cd2 (patch)
treefb31823f07cd15efe4b9cf40362502876c349a38 /core/src/ch
parent9c854709e59b5055b4d6a4d58743c0bc58bb3b93 (diff)
downloadRustAndDust-8c67a8de75d61200bc4f1cda01ec617d9bf75cd2.zip
RustAndDust-8c67a8de75d61200bc4f1cda01ec617d9bf75cd2.tar.gz
Hud: correctly init flag
Diffstat (limited to 'core/src/ch')
-rw-r--r--core/src/ch/asynk/tankontank/game/Hud.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Hud.java b/core/src/ch/asynk/tankontank/game/Hud.java
index 9cdea68..2a84d0a 100644
--- a/core/src/ch/asynk/tankontank/game/Hud.java
+++ b/core/src/ch/asynk/tankontank/game/Hud.java
@@ -58,8 +58,7 @@ public class Hud implements Disposable
bg = new Bg(atlas.findRegion("disabled"));
msg = new Msg(game.skin.getFont("default-font"), atlas.findRegion("disabled"));
- updatePlayer();
-
+ flag = ctrl.currentPlayer().getFlag();
flag.setPosition(OFFSET, (Gdx.graphics.getHeight() - flag.getHeight() - OFFSET));
// TODO add counters for
// - Action Points