From 4e179766df0f9e83903133df875633343e33e1c7 Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Thu, 1 Dec 2005 23:54:00 +0000 Subject: [PATCH] - 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 --- .../threerings/puzzle/drop/client/DropControllerDelegate.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/java/com/threerings/puzzle/drop/client/DropControllerDelegate.java b/src/java/com/threerings/puzzle/drop/client/DropControllerDelegate.java index 0a183bf45..d3b73a02b 100644 --- a/src/java/com/threerings/puzzle/drop/client/DropControllerDelegate.java +++ b/src/java/com/threerings/puzzle/drop/client/DropControllerDelegate.java @@ -288,6 +288,8 @@ public abstract class DropControllerDelegate extends PuzzleControllerDelegate // update the casted board reference _dboard = (DropBoard)board; + // and update our self-summary + updateSelfSummary(); } // documentation inherited @@ -616,7 +618,7 @@ public abstract class DropControllerDelegate extends PuzzleControllerDelegate * than the server-side board from which all other player board * summaries originate. */ - protected void updateSelfSummary () + public void updateSelfSummary () { int pidx = _ctrl.getPlayerIndex(); if (pidx != -1 && _puzobj != null && _puzobj.summaries != null) {