Player status is now initialized for all games. (And yes, I tested
that initBoard didn't generate some exceptions now that the player status initialization occurs after board summary initialization. This occurs in sword fighting and old drinking, for the record.) git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3546 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -671,6 +671,9 @@ public class GameManager extends PlaceManager
|
|||||||
*/
|
*/
|
||||||
protected void gameWillStart ()
|
protected void gameWillStart ()
|
||||||
{
|
{
|
||||||
|
// initialize the player status
|
||||||
|
_gameobj.setPlayerStatus(new int[getPlayerSlots()]);
|
||||||
|
|
||||||
// increment the round identifier
|
// increment the round identifier
|
||||||
_gameobj.setRoundId(_gameobj.roundId + 1);
|
_gameobj.setRoundId(_gameobj.roundId + 1);
|
||||||
|
|
||||||
|
|||||||
@@ -239,9 +239,6 @@ public abstract class PuzzleManager extends GameManager
|
|||||||
// initialize the seed that goes out with this round
|
// initialize the seed that goes out with this round
|
||||||
_puzobj.setSeed(RandomUtil.rand.nextLong());
|
_puzobj.setSeed(RandomUtil.rand.nextLong());
|
||||||
|
|
||||||
// initialize the player status
|
|
||||||
_puzobj.setPlayerStatus(new int[size]);
|
|
||||||
|
|
||||||
// initialize the player boards
|
// initialize the player boards
|
||||||
initBoards();
|
initBoards();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user