From e3df1a5894d1e67800c3794498421be055d9ac93 Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Wed, 12 Jun 2002 07:03:23 +0000 Subject: [PATCH] Don't request to change locations if we're already there. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1447 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- .../threerings/whirled/spot/client/SpotSceneDirector.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/java/com/threerings/whirled/spot/client/SpotSceneDirector.java b/src/java/com/threerings/whirled/spot/client/SpotSceneDirector.java index 0366e441c..bd294710d 100644 --- a/src/java/com/threerings/whirled/spot/client/SpotSceneDirector.java +++ b/src/java/com/threerings/whirled/spot/client/SpotSceneDirector.java @@ -1,5 +1,5 @@ // -// $Id: SpotSceneDirector.java,v 1.11 2002/04/15 16:28:03 shaper Exp $ +// $Id: SpotSceneDirector.java,v 1.12 2002/06/12 07:03:23 ray Exp $ package com.threerings.whirled.spot.client; @@ -149,8 +149,9 @@ public class SpotSceneDirector */ public void changeLocation (int locationId, ChangeObserver obs) { - // refuse if there's a pending location change - if (_pendingLocId != -1) { + // refuse if there's a pending location change or if we're already + // at the specified location + if ((locationId == _locationId) || (_pendingLocId != -1)) { return; }