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