Ensure we've registered our receiver before we call our superclass's function, since this queues up a playerReady and it's important that our addToReceivers event is queued up before that so the game doesn't start before we're ready to go.

git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@319 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Mike Thomas
2007-06-21 00:10:25 +00:00
parent 3e56079a1a
commit a22a6e5551
@@ -42,8 +42,6 @@ public abstract class CardGameController extends GameController
// Documentation inherited.
public void willEnterPlace (PlaceObject plobj)
{
super.willEnterPlace(plobj);
if (_ctx.getClient().getClientObject().receivers.containsKey(
CardGameDecoder.RECEIVER_CODE)) {
Log.warning("Yuh oh, we already have a card game receiver " +
@@ -53,6 +51,8 @@ public abstract class CardGameController extends GameController
_ctx.getClient().getInvocationDirector().registerReceiver(
new CardGameDecoder(this));
super.willEnterPlace(plobj);
}
// Documentation inherited.