diff options
author | McCabe Maxsted | 2009-09-11 17:25:17 -0700 |
---|---|---|
committer | McCabe Maxsted | 2009-09-11 17:31:53 -0700 |
commit | 187e36f6c51e78b00802af7f1758496993365bf0 (patch) | |
tree | 18783fa05fddad2e6900342eb09ca0fede5ac5d8 /linden/indra/newview/llviewermessage.cpp | |
parent | Applied inventory Search menu from Emerald viewer (still ugly) (diff) | |
download | meta-impy-187e36f6c51e78b00802af7f1758496993365bf0.zip meta-impy-187e36f6c51e78b00802af7f1758496993365bf0.tar.gz meta-impy-187e36f6c51e78b00802af7f1758496993365bf0.tar.bz2 meta-impy-187e36f6c51e78b00802af7f1758496993365bf0.tar.xz |
Applied patch for long distance opensim hypergrid tps (SVC-2491) (Feature currently disabled in OpenSim)
Diffstat (limited to 'linden/indra/newview/llviewermessage.cpp')
-rw-r--r-- | linden/indra/newview/llviewermessage.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/linden/indra/newview/llviewermessage.cpp b/linden/indra/newview/llviewermessage.cpp index 3fb8e9a..e4de5b4 100644 --- a/linden/indra/newview/llviewermessage.cpp +++ b/linden/indra/newview/llviewermessage.cpp | |||
@@ -2718,6 +2718,10 @@ void process_agent_movement_complete(LLMessageSystem* msg, void**) | |||
2718 | // appropriate. | 2718 | // appropriate. |
2719 | LLVector3 shift_vector = regionp->getPosRegionFromGlobal( | 2719 | LLVector3 shift_vector = regionp->getPosRegionFromGlobal( |
2720 | gAgent.getRegion()->getOriginGlobal()); | 2720 | gAgent.getRegion()->getOriginGlobal()); |
2721 | // don't shift objects, if teleporting more than about 1000 sims, as | ||
2722 | // for long teleports shifting objects garbles the view at the target region | ||
2723 | if (shift_vector.lengthSquared() > 6.5e10f) | ||
2724 | shift_vector = LLVector3::zero; | ||
2721 | gAgent.setRegion(regionp); | 2725 | gAgent.setRegion(regionp); |
2722 | gObjectList.shiftObjects(shift_vector); | 2726 | gObjectList.shiftObjects(shift_vector); |
2723 | gAssetStorage->setUpstream(msg->getSender()); | 2727 | gAssetStorage->setUpstream(msg->getSender()); |