diff options
author | Jacek Antonelli | 2008-08-15 23:45:27 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:27 -0500 |
commit | a8a62201ba762e98dff92cf49033e577fc34d8d4 (patch) | |
tree | 11f8513c5cdc222f2fac0c93eb724c089803c200 /linden/indra/newview/llworldmapview.cpp | |
parent | Second Life viewer sources 1.18.6.4-RC (diff) | |
download | meta-impy-a8a62201ba762e98dff92cf49033e577fc34d8d4.zip meta-impy-a8a62201ba762e98dff92cf49033e577fc34d8d4.tar.gz meta-impy-a8a62201ba762e98dff92cf49033e577fc34d8d4.tar.bz2 meta-impy-a8a62201ba762e98dff92cf49033e577fc34d8d4.tar.xz |
Second Life viewer sources 1.19.0.0
Diffstat (limited to 'linden/indra/newview/llworldmapview.cpp')
-rw-r--r-- | linden/indra/newview/llworldmapview.cpp | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/linden/indra/newview/llworldmapview.cpp b/linden/indra/newview/llworldmapview.cpp index 84845f9..266ffbc 100644 --- a/linden/indra/newview/llworldmapview.cpp +++ b/linden/indra/newview/llworldmapview.cpp | |||
@@ -12,12 +12,12 @@ | |||
12 | * ("GPL"), unless you have obtained a separate licensing agreement | 12 | * ("GPL"), unless you have obtained a separate licensing agreement |
13 | * ("Other License"), formally executed by you and Linden Lab. Terms of | 13 | * ("Other License"), formally executed by you and Linden Lab. Terms of |
14 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | 14 | * the GPL can be found in doc/GPL-license.txt in this distribution, or |
15 | * online at http://secondlife.com/developers/opensource/gplv2 | 15 | * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2 |
16 | * | 16 | * |
17 | * There are special exceptions to the terms and conditions of the GPL as | 17 | * There are special exceptions to the terms and conditions of the GPL as |
18 | * it is applied to this Source Code. View the full text of the exception | 18 | * it is applied to this Source Code. View the full text of the exception |
19 | * in the file doc/FLOSS-exception.txt in this software distribution, or | 19 | * in the file doc/FLOSS-exception.txt in this software distribution, or |
20 | * online at http://secondlife.com/developers/opensource/flossexception | 20 | * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception |
21 | * | 21 | * |
22 | * By copying, modifying or distributing this software, you acknowledge | 22 | * By copying, modifying or distributing this software, you acknowledge |
23 | * that you have read and understood your obligations described above, | 23 | * that you have read and understood your obligations described above, |
@@ -100,6 +100,16 @@ S32 LLWorldMapView::sTrackingArrowY = 0; | |||
100 | F32 LLWorldMapView::sPixelsPerMeter = 1.f; | 100 | F32 LLWorldMapView::sPixelsPerMeter = 1.f; |
101 | F32 CONE_SIZE = 0.6f; | 101 | F32 CONE_SIZE = 0.6f; |
102 | 102 | ||
103 | |||
104 | #define SIM_NULL_MAP_SCALE 1 // width in pixels, where we start drawing "null" sims | ||
105 | #define SIM_MAP_AGENT_SCALE 2 // width in pixels, where we start drawing agents | ||
106 | #define SIM_MAP_SCALE 1 // width in pixels, where we start drawing sim tiles | ||
107 | |||
108 | // Updates for agent locations. | ||
109 | #define AGENTS_UPDATE_TIME 60.0 // in seconds | ||
110 | |||
111 | |||
112 | |||
103 | void LLWorldMapView::initClass() | 113 | void LLWorldMapView::initClass() |
104 | { | 114 | { |
105 | LLUUID image_id; | 115 | LLUUID image_id; |
@@ -458,7 +468,7 @@ void LLWorldMapView::draw() | |||
458 | LLViewerImage* simimage = info->mCurrentImage; | 468 | LLViewerImage* simimage = info->mCurrentImage; |
459 | LLViewerImage* overlayimage = info->mOverlayImage; | 469 | LLViewerImage* overlayimage = info->mOverlayImage; |
460 | 470 | ||
461 | if (gMapScale < 8.f) | 471 | if (gMapScale < SIM_MAP_SCALE) |
462 | { | 472 | { |
463 | simimage->setBoostLevel(0); | 473 | simimage->setBoostLevel(0); |
464 | if (overlayimage) overlayimage->setBoostLevel(0); | 474 | if (overlayimage) overlayimage->setBoostLevel(0); |
@@ -1117,11 +1127,6 @@ LLVector3d LLWorldMapView::viewPosToGlobal( S32 x, S32 y ) | |||
1117 | 1127 | ||
1118 | BOOL LLWorldMapView::handleToolTip( S32 x, S32 y, LLString& msg, LLRect* sticky_rect_screen ) | 1128 | BOOL LLWorldMapView::handleToolTip( S32 x, S32 y, LLString& msg, LLRect* sticky_rect_screen ) |
1119 | { | 1129 | { |
1120 | if( !getVisible() || !pointInView( x, y ) ) | ||
1121 | { | ||
1122 | return FALSE; | ||
1123 | } | ||
1124 | |||
1125 | LLVector3d pos_global = viewPosToGlobal(x, y); | 1130 | LLVector3d pos_global = viewPosToGlobal(x, y); |
1126 | 1131 | ||
1127 | LLSimInfo* info = gWorldMap->simInfoFromPosGlobal(pos_global); | 1132 | LLSimInfo* info = gWorldMap->simInfoFromPosGlobal(pos_global); |