From 19e5b04b41d60715da095033adb4c6279303ab30 Mon Sep 17 00:00:00 2001 From: Mike Thomas Date: Mon, 17 Jul 2006 21:41:19 +0000 Subject: [PATCH] Need to abstract out the assignment of the starting location of a body. We use this in yohoho for pets to put them somewhere other than a portal. git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@26 c613c5cb-e716-0410-b11b-feb51c14d237 --- .../threerings/whirled/spot/server/SpotSceneManager.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/java/com/threerings/whirled/spot/server/SpotSceneManager.java b/src/java/com/threerings/whirled/spot/server/SpotSceneManager.java index dce5a014..190528a3 100644 --- a/src/java/com/threerings/whirled/spot/server/SpotSceneManager.java +++ b/src/java/com/threerings/whirled/spot/server/SpotSceneManager.java @@ -190,6 +190,15 @@ public class SpotSceneManager extends SceneManager // we don't actually populate their occupant info, but instead assign // them their starting location in the scene + assignStartingLocation(body); + } + + /** + * Give our new body a starting location. + * @param body The new body entering the scene. + */ + protected void assignStartingLocation (BodyObject body) + { int portalId = _enterers.remove(body.getOid()); Portal entry; if (portalId != -1) {