From 70ea63f6cb2b36e0641bae9f839755e56f7ebe75 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Tue, 9 Oct 2007 23:49:02 +0000 Subject: [PATCH] Un-negate the round id if a game does decide to endRound() first and then endGame(). git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@446 c613c5cb-e716-0410-b11b-feb51c14d237 --- src/java/com/threerings/ezgame/server/EZGameManager.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/java/com/threerings/ezgame/server/EZGameManager.java b/src/java/com/threerings/ezgame/server/EZGameManager.java index 01ea21f0..4c20ea28 100644 --- a/src/java/com/threerings/ezgame/server/EZGameManager.java +++ b/src/java/com/threerings/ezgame/server/EZGameManager.java @@ -605,6 +605,11 @@ public class EZGameManager extends GameManager // EZ games immediately resest to PRE_GAME after they end so that they can be restarted if // desired by having all players call playerReady() again _ezObj.setState(EZGameObject.PRE_GAME); + + // untwiddle the round id if we ended the game in between rounds + if (_ezObj.roundId < 0) { + _ezObj.setRoundId(-_ezObj.roundId); + } } @Override