From 01737e6486f8b98392ed819718cf9824f91ac8a7 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Thu, 18 Oct 2001 18:39:10 +0000 Subject: [PATCH] Only start the game once when we receive all of our player ready notifications. If someone disconnects and comes back, we don't want to restart the game when they show up and we determine that everyone is once again available. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@489 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/java/com/threerings/parlor/game/GameManager.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/java/com/threerings/parlor/game/GameManager.java b/src/java/com/threerings/parlor/game/GameManager.java index a6b61f210..0c9c05be4 100644 --- a/src/java/com/threerings/parlor/game/GameManager.java +++ b/src/java/com/threerings/parlor/game/GameManager.java @@ -1,5 +1,5 @@ // -// $Id: GameManager.java,v 1.12 2001/10/18 02:19:54 mdb Exp $ +// $Id: GameManager.java,v 1.13 2001/10/18 18:39:10 mdb Exp $ package com.threerings.parlor.game; @@ -198,8 +198,9 @@ public class GameManager } } - // if everyone is now ready to go, start up the game - if (allSet) { + // if everyone is now ready to go, start up the game (if we + // haven't already) + if (allSet && _gameobj.state == GameObject.AWAITING_PLAYERS) { startGame(); } }