From 4260a7194660bb978262fcacc743d56d60095cbc Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Fri, 3 Aug 2007 22:40:00 +0000 Subject: [PATCH] When we call leavePlace() make sure locationDidChange() is dispatched to listeners letting them know that we're no longer in a location. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4805 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/as/com/threerings/crowd/client/LocationDirector.as | 4 ++++ src/java/com/threerings/crowd/client/LocationDirector.java | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/as/com/threerings/crowd/client/LocationDirector.as b/src/as/com/threerings/crowd/client/LocationDirector.as index beb171c1e..e37895f62 100644 --- a/src/as/com/threerings/crowd/client/LocationDirector.as +++ b/src/as/com/threerings/crowd/client/LocationDirector.as @@ -212,6 +212,10 @@ public class LocationDirector extends BasicDirector _lservice.leavePlace(_cctx.getClient()); didLeavePlace(); + + // let our observers know that we're no longer in a location + _observers.apply(didChangeOp); + return true; } diff --git a/src/java/com/threerings/crowd/client/LocationDirector.java b/src/java/com/threerings/crowd/client/LocationDirector.java index c5564179f..62824fa50 100644 --- a/src/java/com/threerings/crowd/client/LocationDirector.java +++ b/src/java/com/threerings/crowd/client/LocationDirector.java @@ -191,6 +191,10 @@ public class LocationDirector extends BasicDirector _lservice.leavePlace(_ctx.getClient()); didLeavePlace(); + + // let our observers know that we're no longer in a location + _observers.apply(_didChangeOp); + return true; }