From bc2e7501cc0616ba67c17b607fc6a53fb8fe7beb Mon Sep 17 00:00:00 2001 From: Andy Janata Date: Sun, 29 Jan 2012 17:14:28 -0800 Subject: [PATCH] reset the judge index when the game resets --- src/net/socialgamer/cah/data/Game.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net/socialgamer/cah/data/Game.java b/src/net/socialgamer/cah/data/Game.java index d618de2..b0a1d74 100644 --- a/src/net/socialgamer/cah/data/Game.java +++ b/src/net/socialgamer/cah/data/Game.java @@ -380,8 +380,8 @@ public class Game { blackCard = null; } state = GameState.LOBBY; + judgeIndex = 0; - // 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());