webidor/src/main/java/cz/xelfi/quoridor/webidor/resources/Games.java
branchstrict-games-access
changeset 164 2949998db4f6
parent 162 c1bfbe98152b
child 166 8c9131715765
     1.1 --- a/webidor/src/main/java/cz/xelfi/quoridor/webidor/resources/Games.java	Tue Dec 08 15:34:50 2009 +0100
     1.2 +++ b/webidor/src/main/java/cz/xelfi/quoridor/webidor/resources/Games.java	Tue Dec 08 18:47:49 2009 +0100
     1.3 @@ -136,7 +136,7 @@
     1.4          @QueryParam("move") @DefaultValue("-1") int move
     1.5      ) {
     1.6          Game g = findGame(id, move);
     1.7 -        if (g.getId().getStatus().isInProgress()) {
     1.8 +        if (!g.getId().isFinished()) {
     1.9              return g;
    1.10          }
    1.11          String logUser = quoridor.isLoggedIn(loginId);
    1.12 @@ -291,7 +291,7 @@
    1.13                  throw new IOException("Missing white and black identification in " + f);
    1.14              }
    1.15              if (g == null) {
    1.16 -                GameId id = new GameId(f.getName(), white, black, new Date(f.lastModified()), new Date(f.lastModified()), GameStatus.whiteMove, 0);
    1.17 +                GameId id = new GameId(f.getName(), white, black, new Date(f.lastModified()), new Date(f.lastModified()), GameStatus.whiteMove, 0, false);
    1.18                  g = new Game(id);
    1.19              }
    1.20              int hash = line.indexOf('#');