diff options
Diffstat (limited to 'linden/indra/newview/llfloaterworldmap.cpp')
-rw-r--r-- | linden/indra/newview/llfloaterworldmap.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/linden/indra/newview/llfloaterworldmap.cpp b/linden/indra/newview/llfloaterworldmap.cpp index a31dde5..70223c9 100644 --- a/linden/indra/newview/llfloaterworldmap.cpp +++ b/linden/indra/newview/llfloaterworldmap.cpp | |||
@@ -334,6 +334,7 @@ void LLFloaterWorldMap::show(void*, BOOL center_on_target) | |||
334 | 334 | ||
335 | // If nothing is being tracked, set flag so the user position will be found | 335 | // If nothing is being tracked, set flag so the user position will be found |
336 | gFloaterWorldMap->mSetToUserPosition = ( LLTracker::getTrackingStatus() == LLTracker::TRACKING_NOTHING ); | 336 | gFloaterWorldMap->mSetToUserPosition = ( LLTracker::getTrackingStatus() == LLTracker::TRACKING_NOTHING ); |
337 | |||
337 | } | 338 | } |
338 | 339 | ||
339 | if (center_on_target) | 340 | if (center_on_target) |
@@ -450,7 +451,8 @@ void LLFloaterWorldMap::draw() | |||
450 | childSetEnabled("Go Home", enable_go_home); | 451 | childSetEnabled("Go Home", enable_go_home); |
451 | 452 | ||
452 | updateLocation(); | 453 | updateLocation(); |
453 | 454 | ||
455 | |||
454 | LLTracker::ETrackingStatus tracking_status = LLTracker::getTrackingStatus(); | 456 | LLTracker::ETrackingStatus tracking_status = LLTracker::getTrackingStatus(); |
455 | if (LLTracker::TRACKING_AVATAR == tracking_status) | 457 | if (LLTracker::TRACKING_AVATAR == tracking_status) |
456 | { | 458 | { |
@@ -496,7 +498,6 @@ void LLFloaterWorldMap::draw() | |||
496 | centerOnTarget(TRUE); | 498 | centerOnTarget(TRUE); |
497 | } | 499 | } |
498 | 500 | ||
499 | childSetEnabled("Teleport", (BOOL)tracking_status); | ||
500 | // childSetEnabled("Clear", (BOOL)tracking_status); | 501 | // childSetEnabled("Clear", (BOOL)tracking_status); |
501 | childSetEnabled("Show Destination", (BOOL)tracking_status || LLWorldMap::getInstance()->mIsTrackingUnknownLocation); | 502 | childSetEnabled("Show Destination", (BOOL)tracking_status || LLWorldMap::getInstance()->mIsTrackingUnknownLocation); |
502 | childSetEnabled("copy_slurl", (mSLURL.size() > 0) ); | 503 | childSetEnabled("copy_slurl", (mSLURL.size() > 0) ); |
@@ -769,7 +770,7 @@ void LLFloaterWorldMap::updateLocation() | |||
769 | void LLFloaterWorldMap::trackURL(const std::string& region_name, S32 x_coord, S32 y_coord, S32 z_coord) | 770 | void LLFloaterWorldMap::trackURL(const std::string& region_name, S32 x_coord, S32 y_coord, S32 z_coord) |
770 | { | 771 | { |
771 | LLSimInfo* sim_info = LLWorldMap::getInstance()->simInfoFromName(region_name); | 772 | LLSimInfo* sim_info = LLWorldMap::getInstance()->simInfoFromName(region_name); |
772 | z_coord = llclamp(z_coord, 0, 4096); | 773 | z_coord = llclamp(z_coord, 0, 1000); |
773 | if (sim_info) | 774 | if (sim_info) |
774 | { | 775 | { |
775 | LLVector3 local_pos; | 776 | LLVector3 local_pos; |
@@ -1079,6 +1080,7 @@ void LLFloaterWorldMap::onPanBtn( void* userdata ) | |||
1079 | void LLFloaterWorldMap::onGoHome(void*) | 1080 | void LLFloaterWorldMap::onGoHome(void*) |
1080 | { | 1081 | { |
1081 | gAgent.teleportHomeConfirm(); | 1082 | gAgent.teleportHomeConfirm(); |
1083 | gFloaterWorldMap->close(); | ||
1082 | } | 1084 | } |
1083 | 1085 | ||
1084 | 1086 | ||