diff options
Diffstat (limited to 'core/src/ch/asynk/rustanddust/game/ctrl')
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/ctrl/Solo.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/ctrl/Solo.java b/core/src/ch/asynk/rustanddust/game/ctrl/Solo.java index f7d5540..bd9f74c 100644 --- a/core/src/ch/asynk/rustanddust/game/ctrl/Solo.java +++ b/core/src/ch/asynk/rustanddust/game/ctrl/Solo.java @@ -21,9 +21,11 @@ public class Solo extends Ctrl int me = game.backend.getMyId(); int other = game.backend.getOpponentId(); gameId = game.db.storeGameGetId(me, other, battle.getId(), game.config.gameMode.i); - battle.init(this, me, other); + battle.getPlayer().id = me; + battle.getOpponent().id = other; + battle.initialDeployment(); } else { - battle.init(this, game.db.loadState(gameId)); + battle.load(game.db.loadState(gameId)); } } |