summaryrefslogtreecommitdiff
path: root/indra/newview/llpanelplacestab.cpp
diff options
context:
space:
mode:
authorTofu Linden <tofu.linden@lindenlab.com>2010-04-07 10:40:38 +0100
committerTofu Linden <tofu.linden@lindenlab.com>2010-04-07 10:40:38 +0100
commitec0be6639058c9fa242f8fd9c0380bef44c02e1d (patch)
tree79730fa38b4f1952571d66bb1bc08e9691711b41 /indra/newview/llpanelplacestab.cpp
parenta7085418df1ada6e19b94b6df772ed21e663d119 (diff)
parent0bb3f144c0a6712a269246975635962b3b5f48d0 (diff)
merged backout.
Diffstat (limited to 'indra/newview/llpanelplacestab.cpp')
-rw-r--r--indra/newview/llpanelplacestab.cpp5
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
{