aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewermessage.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2010-06-22 20:09:45 -0500
committerJacek Antonelli2010-06-22 20:54:46 -0500
commit932dd4d222b514f81ad5ad3a06b599cce04f7e23 (patch)
tree302628a0a951a25ea22ace711cbc6de0198384a8 /linden/indra/newview/llviewermessage.cpp
parentFixed radar spam regression (diff)
downloadmeta-impy-932dd4d222b514f81ad5ad3a06b599cce04f7e23.zip
meta-impy-932dd4d222b514f81ad5ad3a06b599cce04f7e23.tar.gz
meta-impy-932dd4d222b514f81ad5ad3a06b599cce04f7e23.tar.bz2
meta-impy-932dd4d222b514f81ad5ad3a06b599cce04f7e23.tar.xz
Partially reverted cad41f1 and 65a5856 to help login issues.
This reverts (except for some parts): - Commit cad41f1ae08927737eca4cd9df25381d78e82304. "Fixed #338: addRegion/removeRegion can trigger a viewer quit" - Commit 65a5856f9567074886f28df59a26433c4b447576. "wip forcing region disconnects to log you out"
Diffstat (limited to 'linden/indra/newview/llviewermessage.cpp')
-rw-r--r--linden/indra/newview/llviewermessage.cpp20
1 files changed, 8 insertions, 12 deletions
diff --git a/linden/indra/newview/llviewermessage.cpp b/linden/indra/newview/llviewermessage.cpp
index b1c316d..ecbe0ef 100644
--- a/linden/indra/newview/llviewermessage.cpp
+++ b/linden/indra/newview/llviewermessage.cpp
@@ -3331,18 +3331,14 @@ void process_agent_movement_complete(LLMessageSystem* msg, void**)
3331 3331
3332 // set our upstream host the new simulator and shuffle things as 3332 // set our upstream host the new simulator and shuffle things as
3333 // appropriate. 3333 // appropriate.
3334 // Sometimes OpenSim will get here but still fail on a teleport -- MC 3334 LLVector3 shift_vector = regionp->getPosRegionFromGlobal(
3335 if (regionp != gAgent.getRegion()) 3335 gAgent.getRegion()->getOriginGlobal());
3336 { 3336 gAgent.setRegion(regionp);
3337 LLVector3 shift_vector = regionp->getPosRegionFromGlobal( 3337 gObjectList.shiftObjects(shift_vector);
3338 gAgent.getRegion()->getOriginGlobal()); 3338 gAssetStorage->setUpstream(msg->getSender());
3339 gAgent.setRegion(regionp); 3339 gCacheName->setUpstream(msg->getSender());
3340 gObjectList.shiftObjects(shift_vector); 3340 gViewerThrottle.sendToSim();
3341 gAssetStorage->setUpstream(msg->getSender()); 3341 gViewerWindow->sendShapeToSim();
3342 gCacheName->setUpstream(msg->getSender());
3343 gViewerThrottle.sendToSim();
3344 gViewerWindow->sendShapeToSim();
3345 }
3346 3342
3347 bool is_teleport = gAgent.getTeleportState() == LLAgent::TELEPORT_MOVING; 3343 bool is_teleport = gAgent.getTeleportState() == LLAgent::TELEPORT_MOVING;
3348 3344