diff --git a/src/java/com/threerings/crowd/server/LocationProvider.java b/src/java/com/threerings/crowd/server/LocationProvider.java index 8a3462fd1..c8b87c613 100644 --- a/src/java/com/threerings/crowd/server/LocationProvider.java +++ b/src/java/com/threerings/crowd/server/LocationProvider.java @@ -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