diff options
author | Jacek Antonelli | 2008-08-15 23:44:54 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:54 -0500 |
commit | b2afb8800bb033a04bb3ecdf0363068d56648ef1 (patch) | |
tree | 3568129b5bbddb47cd39d622b4137a8fbff4abaf /linden/indra/newview/llnetmap.cpp | |
parent | Second Life viewer sources 1.14.0.1 (diff) | |
download | meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.zip meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.gz meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.bz2 meta-impy-b2afb8800bb033a04bb3ecdf0363068d56648ef1.tar.xz |
Second Life viewer sources 1.15.0.2
Diffstat (limited to 'linden/indra/newview/llnetmap.cpp')
-rw-r--r-- | linden/indra/newview/llnetmap.cpp | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/linden/indra/newview/llnetmap.cpp b/linden/indra/newview/llnetmap.cpp index dcbf960..35774cb 100644 --- a/linden/indra/newview/llnetmap.cpp +++ b/linden/indra/newview/llnetmap.cpp | |||
@@ -5,6 +5,7 @@ | |||
5 | * | 5 | * |
6 | * Copyright (c) 2001-2007, Linden Research, Inc. | 6 | * Copyright (c) 2001-2007, Linden Research, Inc. |
7 | * | 7 | * |
8 | * Second Life Viewer Source Code | ||
8 | * The source code in this file ("Source Code") is provided by Linden Lab | 9 | * The source code in this file ("Source Code") is provided by Linden Lab |
9 | * to you under the terms of the GNU General Public License, version 2.0 | 10 | * to you under the terms of the GNU General Public License, version 2.0 |
10 | * ("GPL"), unless you have obtained a separate licensing agreement | 11 | * ("GPL"), unless you have obtained a separate licensing agreement |
@@ -238,8 +239,6 @@ void LLNetMap::draw() | |||
238 | mCurPanY = lerp(mCurPanY, mTargetPanY, LLCriticalDamp::getInterpolant(0.1f)); | 239 | mCurPanY = lerp(mCurPanY, mTargetPanY, LLCriticalDamp::getInterpolant(0.1f)); |
239 | 240 | ||
240 | // Prepare a scissor region | 241 | // Prepare a scissor region |
241 | // GLint params[4]; | ||
242 | // glGetIntegerv( GL_SCISSOR_BOX, params ); | ||
243 | F32 rotation = 0; | 242 | F32 rotation = 0; |
244 | 243 | ||
245 | { | 244 | { |
@@ -274,12 +273,10 @@ void LLNetMap::draw() | |||
274 | // figure out where agent is | 273 | // figure out where agent is |
275 | S32 region_width = llround(gWorldPointer->getRegionWidthInMeters()); | 274 | S32 region_width = llround(gWorldPointer->getRegionWidthInMeters()); |
276 | 275 | ||
277 | LLViewerRegion *regionp; | 276 | for (LLWorld::region_list_t::iterator iter = gWorldp->mActiveRegionList.begin(); |
278 | 277 | iter != gWorldp->mActiveRegionList.end(); ++iter) | |
279 | for (regionp = gWorldPointer->mActiveRegionList.getFirstData(); | ||
280 | regionp; | ||
281 | regionp = gWorldPointer->mActiveRegionList.getNextData()) | ||
282 | { | 278 | { |
279 | LLViewerRegion* regionp = *iter; | ||
283 | // Find x and y position relative to camera's center. | 280 | // Find x and y position relative to camera's center. |
284 | LLVector3 origin_agent = regionp->getOriginAgent(); | 281 | LLVector3 origin_agent = regionp->getOriginAgent(); |
285 | LLVector3 rel_region_pos = origin_agent - gAgent.getCameraPositionAgent(); | 282 | LLVector3 rel_region_pos = origin_agent - gAgent.getCameraPositionAgent(); |
@@ -393,10 +390,10 @@ void LLNetMap::draw() | |||
393 | LLVector3 pos_map; | 390 | LLVector3 pos_map; |
394 | 391 | ||
395 | // Draw avatars | 392 | // Draw avatars |
396 | for (regionp = gWorldPointer->mActiveRegionList.getFirstData(); | 393 | for (LLWorld::region_list_t::iterator iter = gWorldp->mActiveRegionList.begin(); |
397 | regionp; | 394 | iter != gWorldp->mActiveRegionList.end(); ++iter) |
398 | regionp = gWorldPointer->mActiveRegionList.getNextData()) | ||
399 | { | 395 | { |
396 | LLViewerRegion* regionp = *iter; | ||
400 | const LLVector3d& origin_global = regionp->getOriginGlobal(); | 397 | const LLVector3d& origin_global = regionp->getOriginGlobal(); |
401 | 398 | ||
402 | S32 count = regionp->mMapAvatars.count(); | 399 | S32 count = regionp->mMapAvatars.count(); |