diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2016-05-19 12:23:26 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2016-05-19 12:23:26 +0200 |
commit | b45b0c45e91757e64d06e69d6bfda6fd9be74c1d (patch) | |
tree | 74b61b4a5e7d4da083e031fa62c2f289b570ff2b /core/src/ch/asynk/rustanddust | |
parent | 9314e6b336441f5a0ad1086389ab959e7bead403 (diff) | |
download | RustAndDust-b45b0c45e91757e64d06e69d6bfda6fd9be74c1d.zip RustAndDust-b45b0c45e91757e64d06e69d6bfda6fd9be74c1d.tar.gz |
GameRecord: canPlay() check if mode is SOLO
Diffstat (limited to 'core/src/ch/asynk/rustanddust')
-rw-r--r-- | core/src/ch/asynk/rustanddust/util/GameRecord.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/ch/asynk/rustanddust/util/GameRecord.java b/core/src/ch/asynk/rustanddust/util/GameRecord.java index 4a540ba..b39a68d 100644 --- a/core/src/ch/asynk/rustanddust/util/GameRecord.java +++ b/core/src/ch/asynk/rustanddust/util/GameRecord.java @@ -90,7 +90,7 @@ public class GameRecord implements List.ListElement, Disposable, Pool.Poolable public String s() { if (s == null) { - if ((mode == GameMode.SOLO) || canPlay()) + if (canPlay()) s = String.format("# %s - %s - %s - %s", mode.s, bName, oName, DateFormat.getDateInstance().format(ts)); else { s = String.format(" %s - %s - %s - %s", mode.s, bName, oName, DateFormat.getDateInstance().format(ts)); @@ -101,6 +101,6 @@ public class GameRecord implements List.ListElement, Disposable, Pool.Poolable public boolean canPlay() { - return (opponent != currentPlayer); + return ((mode == GameMode.SOLO) || (opponent != currentPlayer)); } } |