Don't assume we'll have a ClusteredBodyObject when we first log on.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3207 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: SpotSceneDirector.java,v 1.36 2004/08/27 02:20:44 mdb Exp $
|
// $Id: SpotSceneDirector.java,v 1.37 2004/11/11 02:10:56 mdb Exp $
|
||||||
//
|
//
|
||||||
// Narya library - tools for developing networked games
|
// Narya library - tools for developing networked games
|
||||||
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
|
||||||
@@ -334,12 +334,14 @@ public class SpotSceneDirector extends BasicDirector
|
|||||||
{
|
{
|
||||||
super.clientDidLogon(client);
|
super.clientDidLogon(client);
|
||||||
|
|
||||||
// listen to the client object
|
if (client instanceof ClusteredBodyObject) {
|
||||||
client.getClientObject().addListener(this);
|
// listen to the client object
|
||||||
_self = (ClusteredBodyObject)client.getClientObject();
|
client.getClientObject().addListener(this);
|
||||||
|
_self = (ClusteredBodyObject)client.getClientObject();
|
||||||
|
|
||||||
// we may need to subscribe to a cluster due to session resumption
|
// we may need to subscribe to a cluster due to session resumption
|
||||||
maybeUpdateCluster();
|
maybeUpdateCluster();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// documentation inherited
|
// documentation inherited
|
||||||
|
|||||||
Reference in New Issue
Block a user