diff options
Diffstat (limited to 'core/src/ch')
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/Ctrl.java | 6 | ||||
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/ctrl/Solo.java | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/Ctrl.java b/core/src/ch/asynk/rustanddust/game/Ctrl.java index 6a6dad5..4a4c4f6 100644 --- a/core/src/ch/asynk/rustanddust/game/Ctrl.java +++ b/core/src/ch/asynk/rustanddust/game/Ctrl.java @@ -55,17 +55,17 @@ public abstract class Ctrl implements Disposable Ctrl ctrl = null; switch(game.config.gameMode) { case SOLO: - ctrl = new Solo(game, game.config.battle); + ctrl = new Solo(game); break; } return ctrl; } - public Ctrl(final RustAndDust game, final Battle battle) + public Ctrl(final RustAndDust game) { game.ctrl = this; this.game = game; - this.battle = battle; + this.battle = game.config.battle; this.hud = new Hud(game); this.blockMap = false; diff --git a/core/src/ch/asynk/rustanddust/game/ctrl/Solo.java b/core/src/ch/asynk/rustanddust/game/ctrl/Solo.java index 58c1a4b..f7d5540 100644 --- a/core/src/ch/asynk/rustanddust/game/ctrl/Solo.java +++ b/core/src/ch/asynk/rustanddust/game/ctrl/Solo.java @@ -8,9 +8,9 @@ public class Solo extends Ctrl { private int gameId; - public Solo(final RustAndDust game, final Battle battle) + public Solo(final RustAndDust game) { - super(game, battle); + super(game); } @Override |