GameManager was calling gameDidEnd for games that never began. Changed to check that the game was actually in play.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3302 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Andrzej Kapolka
2005-01-14 22:49:13 +00:00
parent 93ef73095e
commit f2a5845db9
@@ -997,9 +997,13 @@ public class GameManager extends PlaceManager
case GameObject.CANCELLED: case GameObject.CANCELLED:
// fall through to GAME_OVER case // fall through to GAME_OVER case
case GameObject.GAME_OVER: case GameObject.GAME_OVER:
// now we do our end of game processing // Call gameDidEnd only if it was actually started
gameDidEnd(); if (((Integer)event.getOldValue()).intValue() ==
GameObject.IN_PLAY) {
gameDidEnd();
}
break; break;
} }
} }