summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2016-05-19 12:23:26 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2016-05-19 12:23:26 +0200
commitb45b0c45e91757e64d06e69d6bfda6fd9be74c1d (patch)
tree74b61b4a5e7d4da083e031fa62c2f289b570ff2b /core/src/ch/asynk
parent9314e6b336441f5a0ad1086389ab959e7bead403 (diff)
downloadRustAndDust-b45b0c45e91757e64d06e69d6bfda6fd9be74c1d.zip
RustAndDust-b45b0c45e91757e64d06e69d6bfda6fd9be74c1d.tar.gz
GameRecord: canPlay() check if mode is SOLO
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r--core/src/ch/asynk/rustanddust/util/GameRecord.java4
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));
}
}