Fail requests to move to the location a client already occupies.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@225 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: LocationProvider.java,v 1.4 2001/08/11 00:22:55 mdb Exp $
|
||||
// $Id: LocationProvider.java,v 1.5 2001/08/11 02:07:20 mdb Exp $
|
||||
|
||||
package com.threerings.cocktail.party.server;
|
||||
|
||||
@@ -58,6 +58,12 @@ public class LocationProvider extends InvocationProvider
|
||||
return "m.move_in_progress";
|
||||
}
|
||||
|
||||
// make sure they're not already in the location they're asking to
|
||||
// move to
|
||||
if (source.location == placeId) {
|
||||
return "m.already_there";
|
||||
}
|
||||
|
||||
// find out if they were previously in some other location
|
||||
if (source.location != -1) {
|
||||
// remove them from the occupant list of the previous location
|
||||
|
||||
Reference in New Issue
Block a user