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:
Michael Bayne
2001-08-11 02:07:20 +00:00
parent f17562945f
commit f28c645067
@@ -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