aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloaterworldmap.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:50 -0500
committerJacek Antonelli2008-08-15 23:44:50 -0500
commit89fe5dab825a62a0e3fd8d248cbc91c65eb2a426 (patch)
treebcff14b7888d04a2fec799c59369f6095224bd08 /linden/indra/newview/llfloaterworldmap.cpp
parentSecond Life viewer sources 1.13.3.2 (diff)
downloadmeta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.zip
meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.gz
meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.bz2
meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.xz
Second Life viewer sources 1.14.0.0
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llfloaterworldmap.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/linden/indra/newview/llfloaterworldmap.cpp b/linden/indra/newview/llfloaterworldmap.cpp
index af0e5c0..967e6d0 100644
--- a/linden/indra/newview/llfloaterworldmap.cpp
+++ b/linden/indra/newview/llfloaterworldmap.cpp
@@ -312,7 +312,7 @@ void LLFloaterWorldMap::show(void*, BOOL center_on_target)
312 BOOL was_visible = gFloaterWorldMap->getVisible(); 312 BOOL was_visible = gFloaterWorldMap->getVisible();
313 313
314 gFloaterWorldMap->mIsClosing = FALSE; 314 gFloaterWorldMap->mIsClosing = FALSE;
315 gFloaterWorldMap->open(); 315 gFloaterWorldMap->open(); /* Flawfinder: ignore */
316 316
317 LLWorldMapView* map_panel; 317 LLWorldMapView* map_panel;
318 map_panel = (LLWorldMapView*)gFloaterWorldMap->mTabs->getCurrentPanel(); 318 map_panel = (LLWorldMapView*)gFloaterWorldMap->mTabs->getCurrentPanel();
@@ -458,6 +458,14 @@ void LLFloaterWorldMap::draw()
458 return; 458 return;
459 } 459 }
460 460
461 // On orientation island, users don't have a home location yet, so don't
462 // let them teleport "home". It dumps them in an often-crowed welcome
463 // area (infohub) and they get confused. JC
464 LLViewerRegion* regionp = gAgent.getRegion();
465 bool agent_on_prelude = (regionp && regionp->isPrelude());
466 bool enable_go_home = gAgent.isGodlike() || !agent_on_prelude;
467 childSetEnabled("Go Home", enable_go_home);
468
461 updateLocation(); 469 updateLocation();
462 470
463 LLTracker::ETrackingStatus tracking_status = LLTracker::getTrackingStatus(); 471 LLTracker::ETrackingStatus tracking_status = LLTracker::getTrackingStatus();