If a player gets yanked out of a game during the period where everyone's arriving, we weren't noticing that they were gone and were still playing along, sending them events, etc. So, if we're in pre-game, and someone disappears, let's note that.

git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@904 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Mike Thomas
2010-03-18 00:30:47 +00:00
parent 39b21ef6d6
commit dad43e916c
@@ -874,6 +874,10 @@ public class GameManager extends PlaceManager
_gameobj.isActivePlayer(pidx)) {
// end the player's game if they bail on an in-progress game
endPlayerGame(pidx);
} else if (pidx != -1 && _gameobj.state == GameObject.PRE_GAME) {
// Don't need to stop their game, since it isn't going, but DO need to register that
// they've left the building.
_playerOids[pidx] = 0;
}
// then complete the bodyLeft() processing which may result in a call to placeBecameEmpty()