Make the spot services work if you don't implement ClusteredBodyObject. You
won't be able to use clusters but you'll still be able to use locations and portals. git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@501 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
@@ -378,8 +378,12 @@ public class SpotSceneManager extends SceneManager
|
||||
*/
|
||||
protected ClusterRecord getCluster (int bodyOid)
|
||||
{
|
||||
ClusteredBodyObject bobj = (ClusteredBodyObject)CrowdServer.omgr.getObject(bodyOid);
|
||||
return (bobj == null) ? null : _clusters.get(bobj.getClusterOid());
|
||||
BodyObject bobj = (BodyObject)CrowdServer.omgr.getObject(bodyOid);
|
||||
if (bobj instanceof ClusteredBodyObject) {
|
||||
return _clusters.get(((ClusteredBodyObject)bobj).getClusterOid());
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user