Wait until tick() is done before we clear the action.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2884 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: PuzzleBoardView.java,v 1.3 2003/11/26 02:11:34 mdb Exp $
|
// $Id: PuzzleBoardView.java,v 1.4 2003/11/26 23:06:05 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.puzzle.client;
|
package com.threerings.puzzle.client;
|
||||||
|
|
||||||
@@ -358,7 +358,15 @@ public abstract class PuzzleBoardView extends VirtualMediaPanel
|
|||||||
getActionCount() + ":" + isShowing());
|
getActionCount() + ":" + isShowing());
|
||||||
}
|
}
|
||||||
if (getActionCount() == 0) {
|
if (getActionCount() == 0) {
|
||||||
_pctrl.boardActionCleared();
|
// we're probably in the middle of a tick() in an
|
||||||
|
// animationDidFinish() call and we want everyone to finish
|
||||||
|
// processing their business before we go clearing the action,
|
||||||
|
// so we queue this up to be run after the tick is complete
|
||||||
|
_ctx.getClient().getInvoker().invokeLater(new Runnable() {
|
||||||
|
public void run () {
|
||||||
|
_pctrl.boardActionCleared();
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user