From d136386348056a23f5caf0d5ffc26d7b667b46bf Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Tue, 9 Oct 2007 23:47:37 +0000 Subject: [PATCH] Note that endRound() should not be called immediately prior to endGame(), rather endGame() should be called and the last round is never officially "ended". This ensures that GameObject.roundId is left in a sane state at the end of the game in case of a rematch. git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@445 c613c5cb-e716-0410-b11b-feb51c14d237 --- src/as/com/threerings/ezgame/EZGameControl.as | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/as/com/threerings/ezgame/EZGameControl.as b/src/as/com/threerings/ezgame/EZGameControl.as index f6388718..e60a4a51 100644 --- a/src/as/com/threerings/ezgame/EZGameControl.as +++ b/src/as/com/threerings/ezgame/EZGameControl.as @@ -580,8 +580,9 @@ public class EZGameControl extends BaseControl /** * Ends the current round. If nextRoundDelay is greater than zero, the next round will be - * started in the specified number of seconds, otherwise no next round - * will be started. + * started in the specified number of seconds, otherwise no next round will be started. This + * method should not be called at the end of the last round, instead endGame() + * should be called. */ public function endRound (nextRoundDelay :int = 0) :void {