Fixed up logging; added code to mark a location as reserved when we return
it from a call to getUnoccupiedLocation(). Anyone can move into the location (regardless of who reserved it), but it won't be reported as unoccupied until someone enters it and leaves from it once again. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1520 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: LocationProvider.java,v 1.14 2002/05/26 02:24:46 mdb Exp $
|
||||
// $Id: LocationProvider.java,v 1.15 2002/06/20 22:38:58 mdb Exp $
|
||||
|
||||
package com.threerings.crowd.server;
|
||||
|
||||
@@ -86,7 +86,7 @@ public class LocationProvider extends InvocationProvider
|
||||
// anything in distributed object world
|
||||
if (source.location == placeId) {
|
||||
Log.info("Going along with client request to move to where " +
|
||||
"they already are [source=" + source.username +
|
||||
"they already are [source=" + source.who() +
|
||||
", placeId=" + placeId + "].");
|
||||
return pmgr.getConfig();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user