From 8c67a8de75d61200bc4f1cda01ec617d9bf75cd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Thu, 16 Oct 2014 20:02:35 +0200 Subject: Hud: correctly init flag --- core/src/ch/asynk/tankontank/game/Hud.java | 3 +-- 1 file changed, 1 insertion(+), 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 -- cgit v1.1-2-g2b99