diff options
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/Ctrl.java | 2 | ||||
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/Hud.java | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/Ctrl.java b/core/src/ch/asynk/rustanddust/game/Ctrl.java index 8472ba6..807abe8 100644 --- a/core/src/ch/asynk/rustanddust/game/Ctrl.java +++ b/core/src/ch/asynk/rustanddust/game/Ctrl.java @@ -74,7 +74,7 @@ public class Ctrl implements Disposable this.stateType = StateType.DONE; StateCommon.set(game); - this.hud = new Hud(this, game); + this.hud = new Hud(game); this.blockMap = false; this.blockHud = false; diff --git a/core/src/ch/asynk/rustanddust/game/Hud.java b/core/src/ch/asynk/rustanddust/game/Hud.java index 3c1805f..6d82ac8 100644 --- a/core/src/ch/asynk/rustanddust/game/Hud.java +++ b/core/src/ch/asynk/rustanddust/game/Hud.java @@ -52,10 +52,10 @@ public class Hud implements Disposable, Animation } private OkCancelAction okCancelAction; - public Hud(final Ctrl ctrl, final RustAndDust game) + public Hud(final RustAndDust game) { this.game = game; - this.ctrl = ctrl; + this.ctrl = game.ctrl; TextureAtlas hudAtlas = game.factory.hudAtlas; playerInfo = new PlayerInfo(ctrl, game.font, game.uiAtlas, hudAtlas); |