diff options
-rw-r--r-- | core/src/ch/asynk/rustanddust/util/DB.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/core/src/ch/asynk/rustanddust/util/DB.java b/core/src/ch/asynk/rustanddust/util/DB.java index 25bfc18..a6ad9fd 100644 --- a/core/src/ch/asynk/rustanddust/util/DB.java +++ b/core/src/ch/asynk/rustanddust/util/DB.java @@ -214,13 +214,12 @@ public class DB return getGameId(you, opponent, battle, mode); } - public boolean storeTurn(int game, int p1, int p2, String payload) + public boolean storeTurn(int game, int p, String payload) { try { String hash = getDigest(payload); if (hash == null) return false; - exec(String.format(INSERT_TURN, game, p1, hash, payload, game)); - exec(String.format(UPDATE_GAME, p1, p2, game)); + exec(String.format(INSERT_TURN, game, p, hash, payload)); } catch (SQLiteGdxException e) { RustAndDust.error("storeTurn"); return false; |