From 7a8da9bf7229769bc8f545803c6b95af7e739187 Mon Sep 17 00:00:00 2001 From: Andy Janata Date: Fri, 27 Jan 2012 00:15:07 -0800 Subject: [PATCH] wasn't actually sending the event type when moving a game back to the lobby, clients didn't know what to do --- src/net/socialgamer/cah/data/Game.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/net/socialgamer/cah/data/Game.java b/src/net/socialgamer/cah/data/Game.java index 79792f0..2a8c9b0 100644 --- a/src/net/socialgamer/cah/data/Game.java +++ b/src/net/socialgamer/cah/data/Game.java @@ -117,6 +117,8 @@ public class Game { /** * Remove a player from the game. * + * TODO adjust judgeIndex if the player removed is at or before the index + * * @param user * Player to remove from the game. * @return True if {@code user} was the last player in the game. @@ -370,6 +372,7 @@ public class Game { // TODO announce the reset final HashMap data = getEventMap(); + data.put(LongPollResponse.EVENT, LongPollEvent.GAME_STATE_CHANGE.toString()); data.put(LongPollResponse.GAME_STATE, GameState.LOBBY.toString()); broadcastToPlayers(MessageType.GAME_EVENT, data); }