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:
@@ -997,9 +997,13 @@ public class GameManager extends PlaceManager
|
||||
|
||||
case GameObject.CANCELLED:
|
||||
// fall through to GAME_OVER case
|
||||
|
||||
case GameObject.GAME_OVER:
|
||||
// now we do our end of game processing
|
||||
gameDidEnd();
|
||||
// Call gameDidEnd only if it was actually started
|
||||
if (((Integer)event.getOldValue()).intValue() ==
|
||||
GameObject.IN_PLAY) {
|
||||
gameDidEnd();
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user