aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llnetmap.cpp
diff options
context:
space:
mode:
authorMcCabe Maxsted2008-11-22 13:18:13 -0700
committerMcCabe Maxsted2008-11-22 13:18:13 -0700
commitc782860f23e11dc46af043ac16d4209b0853bbb6 (patch)
tree9cb4344cff820d5d154f49203e21507535e1fdcc /linden/indra/newview/llnetmap.cpp
parentFriends dots show as yellow and color can be set in colors.xml (diff)
downloadmeta-impy-c782860f23e11dc46af043ac16d4209b0853bbb6.zip
meta-impy-c782860f23e11dc46af043ac16d4209b0853bbb6.tar.gz
meta-impy-c782860f23e11dc46af043ac16d4209b0853bbb6.tar.bz2
meta-impy-c782860f23e11dc46af043ac16d4209b0853bbb6.tar.xz
Friends dots show as yellow and color can be set in colors.xml
Diffstat (limited to 'linden/indra/newview/llnetmap.cpp')
-rw-r--r--linden/indra/newview/llnetmap.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/linden/indra/newview/llnetmap.cpp b/linden/indra/newview/llnetmap.cpp
index b277998..22dee9d 100644
--- a/linden/indra/newview/llnetmap.cpp
+++ b/linden/indra/newview/llnetmap.cpp
@@ -69,7 +69,7 @@
69 69
70#include "llglheaders.h" 70#include "llglheaders.h"
71 71
72const F32 MAP_SCALE_MIN = 64; 72const F32 MAP_SCALE_MIN = 32;
73const F32 MAP_SCALE_MID = 172; 73const F32 MAP_SCALE_MID = 172;
74const F32 MAP_SCALE_MAX = 512; 74const F32 MAP_SCALE_MAX = 512;
75const F32 MAP_SCALE_INCREMENT = 16; 75const F32 MAP_SCALE_INCREMENT = 16;
@@ -97,6 +97,9 @@ LLNetMap::LLNetMap(
97 mPixelsPerMeter = gMiniMapScale / REGION_WIDTH_METERS; 97 mPixelsPerMeter = gMiniMapScale / REGION_WIDTH_METERS;
98 98
99 LLNetMap::sRotateMap = gSavedSettings.getBOOL( "MiniMapRotate" ); 99 LLNetMap::sRotateMap = gSavedSettings.getBOOL( "MiniMapRotate" );
100
101 glyph_color_avatar = gColors.getColor("NetMapGlyphColorAvatar");
102 glyph_color_friend = gColors.getColor("NetMapGlyphColorFriend");
100 103
101 // Surface texture is dynamically generated/updated. 104 // Surface texture is dynamically generated/updated.
102// createObjectImage(); 105// createObjectImage();
@@ -411,7 +414,7 @@ void LLNetMap::draw()
411 } 414 }
412 LLWorldMapView::drawAvatar( 415 LLWorldMapView::drawAvatar(
413 pos_map.mV[VX], pos_map.mV[VY], 416 pos_map.mV[VX], pos_map.mV[VY],
414 show_as_friend ? gFriendMapColor : gAvatarMapColor, 417 show_as_friend ? glyph_color_friend : glyph_color_avatar,
415 pos_map.mV[VZ]); 418 pos_map.mV[VZ]);
416 } 419 }
417 } 420 }