- Update our own summary after our board is set (so that it'll update
if we re-enter a game in which we had a non-empty board). - Made updateSelfSummary() public to support a change in yohoho. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3772 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -288,6 +288,8 @@ public abstract class DropControllerDelegate extends PuzzleControllerDelegate
|
|||||||
|
|
||||||
// update the casted board reference
|
// update the casted board reference
|
||||||
_dboard = (DropBoard)board;
|
_dboard = (DropBoard)board;
|
||||||
|
// and update our self-summary
|
||||||
|
updateSelfSummary();
|
||||||
}
|
}
|
||||||
|
|
||||||
// documentation inherited
|
// documentation inherited
|
||||||
@@ -616,7 +618,7 @@ public abstract class DropControllerDelegate extends PuzzleControllerDelegate
|
|||||||
* than the server-side board from which all other player board
|
* than the server-side board from which all other player board
|
||||||
* summaries originate.
|
* summaries originate.
|
||||||
*/
|
*/
|
||||||
protected void updateSelfSummary ()
|
public void updateSelfSummary ()
|
||||||
{
|
{
|
||||||
int pidx = _ctrl.getPlayerIndex();
|
int pidx = _ctrl.getPlayerIndex();
|
||||||
if (pidx != -1 && _puzobj != null && _puzobj.summaries != null) {
|
if (pidx != -1 && _puzobj != null && _puzobj.summaries != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user