moved the incrementation of roundId into gameWillStart()

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1723 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2002-09-20 02:30:11 +00:00
parent cecb5fbef5
commit bb0ae9e187
@@ -1,5 +1,5 @@
//
// $Id: GameManager.java,v 1.41 2002/09/18 04:01:29 shaper Exp $
// $Id: GameManager.java,v 1.42 2002/09/20 02:30:11 ray Exp $
package com.threerings.parlor.game;
@@ -409,6 +409,9 @@ public class GameManager extends PlaceManager
*/
protected void gameWillStart ()
{
// increment the round identifier
_gameobj.setRoundId(_gameobj.roundId + 1);
// let our delegates do their business
applyToDelegates(new DelegateOp() {
public void apply (PlaceManagerDelegate delegate) {
@@ -531,9 +534,6 @@ public class GameManager extends PlaceManager
// let the derived class do its pre-reset stuff
gameWillReset();
// increment the round identifier
_gameobj.setRoundId(_gameobj.roundId + 1);
// do the standard game start processing
gameWillStart();
_gameobj.setState(GameObject.IN_PLAY);