From 51eb40d77f4a7475060771115e1572eb025f42a4 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Tue, 6 Jun 2006 15:51:48 +0000 Subject: [PATCH] The natural next step is playersAllHere(), not startGame(). Normally all players report ready and we then call playersAllHere(). If we have partial no-show, playersAllHere() will never have been called, so we want to call that and let that call startGame() (or do custom stuff for games that want to do custom stuff). git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4175 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- .../com/threerings/parlor/game/server/GameManager.java | 7 ++++--- 1 file changed, 4 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 15d2cf98b..bb0fc74db 100644 --- a/src/java/com/threerings/parlor/game/server/GameManager.java +++ b/src/java/com/threerings/parlor/game/server/GameManager.java @@ -688,12 +688,13 @@ public class GameManager extends PlaceManager cancelGame(); } else { - // go ahead and start the game; gameDidStart() will take care of - // giving the boot to anyone who isn't around + // go ahead and report that everyone is ready (which will start the + // game); gameDidStart() will take care of giving the boot to + // anyone who isn't around Log.info("Forcing start of partial no-show game " + "[game=" + _gameobj.which() + ", poids=" + StringUtil.toString(_playerOids) + "]."); - startGame(); + playersAllHere(); } }