diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2016-03-12 13:27:50 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2016-03-12 13:27:50 +0100 |
commit | 749e3221b45cd0696a5f48551be696e75b5b6e55 (patch) | |
tree | 014fda60a4881d519a0282244ab0364a1c9c6940 /core/src/ch/asynk/rustanddust/menu | |
parent | dd372b41c9dabb7e6610ec7550ae40c4ebacb67b (diff) | |
download | RustAndDust-749e3221b45cd0696a5f48551be696e75b5b6e55.zip RustAndDust-749e3221b45cd0696a5f48551be696e75b5b6e55.tar.gz |
SQL: update schema
Diffstat (limited to 'core/src/ch/asynk/rustanddust/menu')
-rw-r--r-- | core/src/ch/asynk/rustanddust/menu/NewGameMenu.java | 2 | ||||
-rw-r--r-- | core/src/ch/asynk/rustanddust/menu/PlayMenu.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/core/src/ch/asynk/rustanddust/menu/NewGameMenu.java b/core/src/ch/asynk/rustanddust/menu/NewGameMenu.java index b9815ba..e68e5c3 100644 --- a/core/src/ch/asynk/rustanddust/menu/NewGameMenu.java +++ b/core/src/ch/asynk/rustanddust/menu/NewGameMenu.java @@ -165,7 +165,7 @@ public class NewGameMenu extends Patch implements MenuCtrl.Panel return MenuCtrl.MenuType.OK; } - game.config.gameId = game.db.gameExists(game.config.battle.getId(), game.config.gameMode.i); + game.config.gameId = game.db.getGameId(game.backend.getOpponentId(), game.config.battle.getId(), game.config.gameMode.i); if (game.config.gameId != game.db.NO_RECORD) { notImplemented = false; return MenuCtrl.MenuType.OKKO; diff --git a/core/src/ch/asynk/rustanddust/menu/PlayMenu.java b/core/src/ch/asynk/rustanddust/menu/PlayMenu.java index 768e778..bd89368 100644 --- a/core/src/ch/asynk/rustanddust/menu/PlayMenu.java +++ b/core/src/ch/asynk/rustanddust/menu/PlayMenu.java @@ -138,7 +138,7 @@ public class PlayMenu extends Patch implements MenuCtrl.Panel return MenuCtrl.MenuType.OKKO; } else if (resumeBtn.hit(x, y)) { game.playType(); - game.config.gameId = GameRecord.get(getList().getIdx()).g; + game.config.gameId = GameRecord.get(getList().getIdx()).id; return MenuCtrl.MenuType.BEGIN; } else if (list.hit(x, y)) { if (i != getList().getIdx()) |