Do our business in bodyWillEnter() which is more appropriate.

git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@787 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Michael Bayne
2008-12-05 22:41:09 +00:00
parent 8eaf8fc7b9
commit 38cfdf31ae
@@ -111,6 +111,15 @@ public class SpotSceneManager extends SceneManager
updateLocation(body, portal.getLocation());
}
@Override
public void bodyWillEnter (BodyObject body)
{
super.bodyWillEnter(body);
// assign this body a starting location in the scene
assignStartingLocation(body);
}
@Override
protected void didStartup ()
{
@@ -160,16 +169,6 @@ public class SpotSceneManager extends SceneManager
}
}
@Override
protected void insertOccupantInfo (OccupantInfo info, BodyObject body)
{
super.insertOccupantInfo(info, body);
// 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.
*/