Moved cleanup code to gameDidEnd.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3507 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -113,8 +113,10 @@ public class TrickCardGameManagerDelegate extends TurnGameManagerDelegate
|
||||
}
|
||||
|
||||
// Documentation inherited.
|
||||
public void gameWillEnd ()
|
||||
public void gameDidEnd ()
|
||||
{
|
||||
super.gameDidEnd();
|
||||
|
||||
// make sure all intervals are cancelled
|
||||
_turnTimeoutInterval.cancel();
|
||||
_endTrickInterval.cancel();
|
||||
@@ -127,9 +129,7 @@ public class TrickCardGameManagerDelegate extends TurnGameManagerDelegate
|
||||
|
||||
// initialize the array of rematch requests
|
||||
_trickCardGame.setRematchRequests(
|
||||
new int[_cardGame.getPlayerCount()]);
|
||||
|
||||
super.gameDidEnd();
|
||||
new int[_cardGame.getPlayerCount()]);
|
||||
}
|
||||
|
||||
// Documentation inherited.
|
||||
|
||||
Reference in New Issue
Block a user