From b45b0c45e91757e64d06e69d6bfda6fd9be74c1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Thu, 19 May 2016 12:23:26 +0200 Subject: GameRecord: canPlay() check if mode is SOLO --- core/src/ch/asynk/rustanddust/util/GameRecord.java | 4 ++-- 1 file 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)); } } -- cgit v1.1-2-g2b99