location is an object, compare appropriately.

git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@374 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Mike Thomas
2007-07-24 17:31:19 +00:00
parent 923eaf3f7d
commit 85d3e3c7a7
@@ -315,7 +315,7 @@ public class SpotSceneManager extends SceneManager
// make sure we're in the same scene as said user // make sure we're in the same scene as said user
BodyObject friend = (BodyObject)tobj; BodyObject friend = (BodyObject)tobj;
if (friend.location != joiner.location) { if (!friend.location.equals(joiner.location)) {
Log.info("Refusing cluster join from non-proximate user [joiner=" + joiner.who() + Log.info("Refusing cluster join from non-proximate user [joiner=" + joiner.who() +
", jloc=" + joiner.location + ", target=" + friend.who() + ", jloc=" + joiner.location + ", target=" + friend.who() +
", tloc=" + friend.location + "]."); ", tloc=" + friend.location + "].");