From 530188e5f2cd0a57190f6a7a2ab2055e0550865d Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Thu, 12 Sep 2002 23:04:04 +0000 Subject: [PATCH] Don't clone the occupantinfo when changing the location, just change it. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1675 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- .../threerings/whirled/spot/server/SpotSceneManager.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/java/com/threerings/whirled/spot/server/SpotSceneManager.java b/src/java/com/threerings/whirled/spot/server/SpotSceneManager.java index c7d3890d3..13637df6d 100644 --- a/src/java/com/threerings/whirled/spot/server/SpotSceneManager.java +++ b/src/java/com/threerings/whirled/spot/server/SpotSceneManager.java @@ -1,5 +1,5 @@ // -// $Id: SpotSceneManager.java,v 1.18 2002/09/09 23:22:28 ray Exp $ +// $Id: SpotSceneManager.java,v 1.19 2002/09/12 23:04:04 ray Exp $ package com.threerings.whirled.spot.server; @@ -229,12 +229,8 @@ public class SpotSceneManager extends SceneManager _locationOccs[locidx] = bodyOid; } - // update a clone of their occupant info, we need to clone because - // the original could still be in the queue as part of another - // event going out to the clients. - soi = (SpotOccupantInfo) soi.clone(); + // update the location and broadcast to the place soi.locationId = locationId; - // and broadcast the update to the place _plobj.updateOccupantInfo(soi); // figure out the cluster chat oid