New occupant info handling facilities that prevent rapid fire modifiers
from stepping on one anothers' toes. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1676 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: LocationProvider.java,v 1.16 2002/08/14 19:07:49 mdb Exp $
|
||||
// $Id: LocationProvider.java,v 1.17 2002/09/13 00:20:43 mdb Exp $
|
||||
|
||||
package com.threerings.crowd.server;
|
||||
|
||||
@@ -107,12 +107,9 @@ public class LocationProvider
|
||||
// remove them from any previous location
|
||||
leaveOccupiedPlace(source);
|
||||
|
||||
// generate a new occupant info record and add it to the
|
||||
// target location
|
||||
OccupantInfo info = pmgr.buildOccupantInfo(source);
|
||||
if (info != null) {
|
||||
place.addToOccupantInfo(info);
|
||||
}
|
||||
// generate a new occupant info record (which will add it
|
||||
// to the target location)
|
||||
pmgr.buildOccupantInfo(source);
|
||||
|
||||
// set the body's new location
|
||||
source.setLocation(place.getOid());
|
||||
|
||||
Reference in New Issue
Block a user