From a1e8ffa65a1fb9a24580edc594314a9f1d4d2695 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Fri, 29 Nov 2002 21:25:37 +0000 Subject: [PATCH] Cancel any game that isn't already over in placeBecameEmpty(), log more useful info when we abort a game because of a complete no-show. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2008 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/java/com/threerings/parlor/game/GameManager.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/java/com/threerings/parlor/game/GameManager.java b/src/java/com/threerings/parlor/game/GameManager.java index 5607e3be2..d8419ed46 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.56 2002/11/29 20:56:06 mdb Exp $ +// $Id: GameManager.java,v 1.57 2002/11/29 21:25:37 mdb Exp $ package com.threerings.parlor.game; @@ -433,8 +433,8 @@ public class GameManager extends PlaceManager // Log.info("Game room empty. Going away. " + // "[game=" + _gameobj.which() + "]."); - // cancel the game if it was in play - if (_gameobj.state == GameObject.IN_PLAY) { + // cancel the game if it was not already over + if (_gameobj.state != GameObject.GAME_OVER) { _gameobj.setState(GameObject.CANCELLED); } @@ -474,7 +474,9 @@ public class GameManager extends PlaceManager // if there's no one in the room, go ahead and clear it out if (_plobj.occupants.size() == 0) { Log.info("Cancelling total no-show " + - "[game=" + _gameobj.which() + "]."); + "[game=" + _gameobj.which() + + ", players=" + StringUtil.toString(_gameobj.players) + + ", poids=" + StringUtil.toString(_playerOids) + "]."); placeBecameEmpty(); } else {