aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloaterworldmap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llfloaterworldmap.cpp')
-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();