From 7454aa6ad767e564ff02286ce917ada6274fed79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Thu, 2 Jun 2016 12:08:30 +0200 Subject: Backend: opponent is me at init --- android/src/ch/asynk/rustanddust/android/AndroidBackend.java | 2 +- desktop/src/ch/asynk/rustanddust/desktop/DesktopBackend.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/android/src/ch/asynk/rustanddust/android/AndroidBackend.java b/android/src/ch/asynk/rustanddust/android/AndroidBackend.java index f042894..33cdc4e 100644 --- a/android/src/ch/asynk/rustanddust/android/AndroidBackend.java +++ b/android/src/ch/asynk/rustanddust/android/AndroidBackend.java @@ -34,6 +34,6 @@ public class AndroidBackend implements Backend me = game.db.storePlayerGetId(accounts[0].name.toString(), "myself"); else me = game.db.storePlayerGetId("me", "myself"); - opponent = game.db.storePlayerGetId("opponent", "other"); + opponent = me; } } diff --git a/desktop/src/ch/asynk/rustanddust/desktop/DesktopBackend.java b/desktop/src/ch/asynk/rustanddust/desktop/DesktopBackend.java index 22cca60..db7f212 100644 --- a/desktop/src/ch/asynk/rustanddust/desktop/DesktopBackend.java +++ b/desktop/src/ch/asynk/rustanddust/desktop/DesktopBackend.java @@ -18,6 +18,6 @@ public class DesktopBackend implements Backend public void init(RustAndDust game) { me = game.db.storePlayerGetId("me", "myself"); - opponent = game.db.storePlayerGetId("opponent", "other"); + opponent = me; } } -- cgit v1.1-2-g2b99