diff options
Diffstat (limited to 'linden/indra/newview/llviewerregion.cpp')
-rw-r--r-- | linden/indra/newview/llviewerregion.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/linden/indra/newview/llviewerregion.cpp b/linden/indra/newview/llviewerregion.cpp index 1cc6d42..e8ed85f 100644 --- a/linden/indra/newview/llviewerregion.cpp +++ b/linden/indra/newview/llviewerregion.cpp | |||
@@ -179,7 +179,7 @@ LLViewerRegion::~LLViewerRegion() | |||
179 | // This should be reference counted... | 179 | // This should be reference counted... |
180 | disconnectAllNeighbors(); | 180 | disconnectAllNeighbors(); |
181 | mCloudLayer.destroy(); | 181 | mCloudLayer.destroy(); |
182 | gWorldPointer->mPartSim.cleanupRegion(this); | 182 | LLViewerPartSim::getInstance()->cleanupRegion(this); |
183 | 183 | ||
184 | gObjectList.killObjects(this); | 184 | gObjectList.killObjects(this); |
185 | 185 | ||
@@ -626,7 +626,7 @@ F32 LLViewerRegion::getCompositionXY(const S32 x, const S32 y) const | |||
626 | if (y >= 256) | 626 | if (y >= 256) |
627 | { | 627 | { |
628 | LLVector3d center = getCenterGlobal() + LLVector3d(256.f, 256.f, 0.f); | 628 | LLVector3d center = getCenterGlobal() + LLVector3d(256.f, 256.f, 0.f); |
629 | LLViewerRegion *regionp = gWorldPointer->getRegionFromPosGlobal(center); | 629 | LLViewerRegion *regionp = LLWorld::getInstance()->getRegionFromPosGlobal(center); |
630 | if (regionp) | 630 | if (regionp) |
631 | { | 631 | { |
632 | // OK, we need to do some hackery here - different simulators no longer use | 632 | // OK, we need to do some hackery here - different simulators no longer use |
@@ -653,7 +653,7 @@ F32 LLViewerRegion::getCompositionXY(const S32 x, const S32 y) const | |||
653 | else | 653 | else |
654 | { | 654 | { |
655 | LLVector3d center = getCenterGlobal() + LLVector3d(256.f, 0, 0.f); | 655 | LLVector3d center = getCenterGlobal() + LLVector3d(256.f, 0, 0.f); |
656 | LLViewerRegion *regionp = gWorldPointer->getRegionFromPosGlobal(center); | 656 | LLViewerRegion *regionp = LLWorld::getInstance()->getRegionFromPosGlobal(center); |
657 | if (regionp) | 657 | if (regionp) |
658 | { | 658 | { |
659 | // OK, we need to do some hackery here - different simulators no longer use | 659 | // OK, we need to do some hackery here - different simulators no longer use |
@@ -681,7 +681,7 @@ F32 LLViewerRegion::getCompositionXY(const S32 x, const S32 y) const | |||
681 | else if (y >= 256) | 681 | else if (y >= 256) |
682 | { | 682 | { |
683 | LLVector3d center = getCenterGlobal() + LLVector3d(0.f, 256.f, 0.f); | 683 | LLVector3d center = getCenterGlobal() + LLVector3d(0.f, 256.f, 0.f); |
684 | LLViewerRegion *regionp = gWorldPointer->getRegionFromPosGlobal(center); | 684 | LLViewerRegion *regionp = LLWorld::getInstance()->getRegionFromPosGlobal(center); |
685 | if (regionp) | 685 | if (regionp) |
686 | { | 686 | { |
687 | // OK, we need to do some hackery here - different simulators no longer use | 687 | // OK, we need to do some hackery here - different simulators no longer use |
@@ -868,9 +868,8 @@ public: | |||
868 | const LLSD& context, | 868 | const LLSD& context, |
869 | const LLSD& input) const | 869 | const LLSD& input) const |
870 | { | 870 | { |
871 | if(!gWorldp) return; | ||
872 | LLHost host(input["sender"].asString()); | 871 | LLHost host(input["sender"].asString()); |
873 | LLViewerRegion* region = gWorldp->getRegion(host); | 872 | LLViewerRegion* region = LLWorld::getInstance()->getRegion(host); |
874 | if( !region ) | 873 | if( !region ) |
875 | { | 874 | { |
876 | return; | 875 | return; |
@@ -950,6 +949,7 @@ void LLViewerRegion::updateCoarseLocations(LLMessageSystem* msg) | |||
950 | { | 949 | { |
951 | //llinfos << "CoarseLocationUpdate" << llendl; | 950 | //llinfos << "CoarseLocationUpdate" << llendl; |
952 | mMapAvatars.reset(); | 951 | mMapAvatars.reset(); |
952 | mMapAvatarIDs.reset(); // only matters in a rare case but it's good to be safe. | ||
953 | 953 | ||
954 | U8 x_pos = 0; | 954 | U8 x_pos = 0; |
955 | U8 y_pos = 0; | 955 | U8 y_pos = 0; |
@@ -1382,7 +1382,6 @@ void LLViewerRegion::setSeedCapability(const std::string& url) | |||
1382 | capabilityNames.append("MapLayer"); | 1382 | capabilityNames.append("MapLayer"); |
1383 | capabilityNames.append("MapLayerGod"); | 1383 | capabilityNames.append("MapLayerGod"); |
1384 | capabilityNames.append("NewFileAgentInventory"); | 1384 | capabilityNames.append("NewFileAgentInventory"); |
1385 | capabilityNames.append("ParcelGodReserveForNewbie"); | ||
1386 | capabilityNames.append("ParcelPropertiesUpdate"); | 1385 | capabilityNames.append("ParcelPropertiesUpdate"); |
1387 | capabilityNames.append("ParcelVoiceInfoRequest"); | 1386 | capabilityNames.append("ParcelVoiceInfoRequest"); |
1388 | capabilityNames.append("ProvisionVoiceAccountRequest"); | 1387 | capabilityNames.append("ProvisionVoiceAccountRequest"); |