From 64de3f436851f0926d5336c9976e8c32d4c4f476 Mon Sep 17 00:00:00 2001 From: Ted V Date: Thu, 12 May 2005 00:51:11 +0000 Subject: [PATCH] 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 --- src/java/com/threerings/parlor/game/server/GameManager.java | 3 +++ src/java/com/threerings/puzzle/server/PuzzleManager.java | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/java/com/threerings/parlor/game/server/GameManager.java b/src/java/com/threerings/parlor/game/server/GameManager.java index c99e58e69..abcb1addd 100644 --- a/src/java/com/threerings/parlor/game/server/GameManager.java +++ b/src/java/com/threerings/parlor/game/server/GameManager.java @@ -671,6 +671,9 @@ public class GameManager extends PlaceManager */ protected void gameWillStart () { + // initialize the player status + _gameobj.setPlayerStatus(new int[getPlayerSlots()]); + // increment the round identifier _gameobj.setRoundId(_gameobj.roundId + 1); diff --git a/src/java/com/threerings/puzzle/server/PuzzleManager.java b/src/java/com/threerings/puzzle/server/PuzzleManager.java index b781aa2f3..1e285e895 100644 --- a/src/java/com/threerings/puzzle/server/PuzzleManager.java +++ b/src/java/com/threerings/puzzle/server/PuzzleManager.java @@ -239,9 +239,6 @@ public abstract class PuzzleManager extends GameManager // initialize the seed that goes out with this round _puzobj.setSeed(RandomUtil.rand.nextLong()); - // initialize the player status - _puzobj.setPlayerStatus(new int[size]); - // initialize the player boards initBoards();