diff options
author | Leyla Farazha <leyla@lindenlab.com> | 2010-04-07 17:09:46 -0700 |
---|---|---|
committer | Leyla Farazha <leyla@lindenlab.com> | 2010-04-07 17:09:46 -0700 |
commit | 89fad5ded4b5e78bf83f5c9817cb5220703883bc (patch) | |
tree | 3575e72890c82cf28ddcfbe18ca778f9dfef8fc6 /indra/newview/llpanelplacestab.cpp | |
parent | 6900278d7f787f8a3fe5d06e2eceb91c9dd9d5bd (diff) | |
parent | 2288edf80ff87ca55b49b22b0f794083f78f86d9 (diff) |
Merge
Diffstat (limited to 'indra/newview/llpanelplacestab.cpp')
-rw-r--r-- | indra/newview/llpanelplacestab.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/newview/llpanelplacestab.cpp b/indra/newview/llpanelplacestab.cpp index 6b12796e59..9806b8c64d 100644 --- a/indra/newview/llpanelplacestab.cpp +++ b/indra/newview/llpanelplacestab.cpp @@ -70,7 +70,10 @@ void LLPanelPlacesTab::onRegionResponse(const LLVector3d& landmark_global_pos, std::string sl_url; if ( gotSimName ) { - sl_url = LLSLURL(sim_name, landmark_global_pos).getSLURLString(); + F32 region_x = (F32)fmod( landmark_global_pos.mdV[VX], (F64)REGION_WIDTH_METERS ); + F32 region_y = (F32)fmod( landmark_global_pos.mdV[VY], (F64)REGION_WIDTH_METERS ); + + sl_url = LLSLURL::buildSLURL(sim_name, llround(region_x), llround(region_y), llround((F32)landmark_global_pos.mdV[VZ])); } else { |