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
This commit is contained in:
@@ -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;
|
package com.threerings.whirled.spot.server;
|
||||||
|
|
||||||
@@ -229,12 +229,8 @@ public class SpotSceneManager extends SceneManager
|
|||||||
_locationOccs[locidx] = bodyOid;
|
_locationOccs[locidx] = bodyOid;
|
||||||
}
|
}
|
||||||
|
|
||||||
// update a clone of their occupant info, we need to clone because
|
// update the location and broadcast to the place
|
||||||
// the original could still be in the queue as part of another
|
|
||||||
// event going out to the clients.
|
|
||||||
soi = (SpotOccupantInfo) soi.clone();
|
|
||||||
soi.locationId = locationId;
|
soi.locationId = locationId;
|
||||||
// and broadcast the update to the place
|
|
||||||
_plobj.updateOccupantInfo(soi);
|
_plobj.updateOccupantInfo(soi);
|
||||||
|
|
||||||
// figure out the cluster chat oid
|
// figure out the cluster chat oid
|
||||||
|
|||||||
Reference in New Issue
Block a user