 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 
 package com.threerings.whirled.spot.client {
-
+import com.threerings.crowd.client.CrowdClient;
 import com.threerings.util.Log;
 import com.threerings.util.ResultListener;
 


        // sanity check the server's notion of what scene we're in with our notion of it
        var sceneId :int = _scdir.getScene().getId();
        var clSceneId :int = ScenePlace.getSceneId(
            _wctx.getClient().getClientObject() as BodyObject);
        if (sceneId != clSceneId) {
            log.warning("Client and server differ in opinion of what scene we're in " +
                        "[sSceneId=" + clSceneId + ", cSceneId=" + sceneId + "].");

    {
        super.clientObjectDidChange(event);

        var body :BodyObject = CrowdClient(event.getClient()).bodyOf();
        if (body is ClusteredBodyObject) {
            // listen to the body
            body.addListener(this);
            _self = (body as ClusteredBodyObject);
        }
    }

    // documentation inherited
