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:
Michael Bayne
2007-11-15 02:09:51 +00:00
parent 3e296fce67
commit 6a783e8bc4
2 changed files with 10 additions and 4 deletions
@@ -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;
}
}
/**