diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2016-02-29 06:51:33 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2016-02-29 06:51:33 +0100 |
commit | 55b74b3568d122e2366ba438dae4108f1484ec3a (patch) | |
tree | fef3a680fe746e3fa2cfcde4880454ee9d3cac7d /core/src/ch/asynk/rustanddust/util | |
parent | a0d015477acb9cd5a8deb8bea91c944bf8754934 (diff) | |
download | RustAndDust-55b74b3568d122e2366ba438dae4108f1484ec3a.zip RustAndDust-55b74b3568d122e2366ba438dae4108f1484ec3a.tar.gz |
DB: fix storeTurn()
Diffstat (limited to 'core/src/ch/asynk/rustanddust/util')
-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; |