Skip to content

Commit

Permalink
Fix gameChanged in JSON backend
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyevans committed Feb 13, 2012
1 parent 54edf28 commit d453b12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion persist_json.coffee
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ Q.Game.load = (id) ->
game game


Q.Game.gameChanged = (gameId, moveCount) -> Q.Game.gameChanged = (gameId, moveCount) ->
F.exists("#{ROOT}/games/#{gameId}/states/#{moveCount}") && !F.exists("#{ROOT}/games/#{gameId}/states/#{moveCount+1}") F.exists("#{ROOT}/games/#{gameId}/states/#{moveCount+1}")


Q.Game.prototype.loadPlayers = -> Q.Game.prototype.loadPlayers = ->
for i in idsFromDir("#{ROOT}/games/#{@id}/players") for i in idsFromDir("#{ROOT}/games/#{@id}/players")
Expand Down

0 comments on commit d453b12

Please sign in to comment.