Fixing the preparation state of a game for before playing starting fellowship. Also game in "Preparation" can now be watched.

This commit is contained in:
marcins78@gmail.com
2011-12-07 16:26:13 +00:00
parent 243e170767
commit a623d01e36
2 changed files with 3 additions and 2 deletions

View File

@@ -79,7 +79,8 @@ public class LotroGameMediator {
public String getGameStatus() {
if (_lotroGame.getWinnerPlayerId() != null)
return "Finished";
if (_lotroGame.getGameState().getCurrentPhase() == Phase.PLAY_STARTING_FELLOWSHIP)
final Phase currentPhase = _lotroGame.getGameState().getCurrentPhase();
if (currentPhase == Phase.PLAY_STARTING_FELLOWSHIP || currentPhase == Phase.PUT_RING_BEARER)
return "Preparation";
return "Playing";
}

View File

@@ -230,7 +230,7 @@ var GempLotrHallUI = Class.extend({
}
}
if (status == "Playing") {
if (status == "Playing" || status == "Preparation") {
var but = $("<button>Watch game</button>");
$(but).button().click(
function(event) {