aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llworldmapview.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llworldmapview.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/linden/indra/newview/llworldmapview.cpp b/linden/indra/newview/llworldmapview.cpp
index 92d9588..0d266dd 100644
--- a/linden/indra/newview/llworldmapview.cpp
+++ b/linden/indra/newview/llworldmapview.cpp
@@ -208,6 +208,8 @@ LLWorldMapView::LLWorldMapView(const std::string& name, const LLRect& rect )
208 mTextBoxNorthWest = new LLTextBox( std::string("NW"), minor_dir_rect ); 208 mTextBoxNorthWest = new LLTextBox( std::string("NW"), minor_dir_rect );
209 mTextBoxNorthWest->setColor( minor_color ); 209 mTextBoxNorthWest->setColor( minor_color );
210 addChild( mTextBoxNorthWest ); 210 addChild( mTextBoxNorthWest );
211
212 glyph_color_avatar = gColors.getColor("NetMapGlyphColorAvatar");
211} 213}
212 214
213 215
@@ -886,8 +888,8 @@ void LLWorldMapView::drawAgents()
886 S32 agent_count = info.mExtra; 888 S32 agent_count = info.mExtra;
887 sim_agent_count += info.mExtra; 889 sim_agent_count += info.mExtra;
888 // Here's how we'd choose the color if info.mID were available but it's not being sent: 890 // Here's how we'd choose the color if info.mID were available but it's not being sent:
889 //LLColor4 color = (agent_count == 1 && is_agent_friend(info.mID)) ? gFriendMapColor : gAvatarMapColor; 891 //LLColor4 color = (agent_count == 1 && is_agent_friend(info.mID)) ? glyph_color_friend : glyph_color_avatar;
890 drawImageStack(info.mPosGlobal, sAvatarSmallImage, agent_count, 3.f, gAvatarMapColor); 892 drawImageStack(info.mPosGlobal, sAvatarSmallImage, agent_count, 3.f, glyph_color_avatar);
891 } 893 }
892 LLWorldMap::getInstance()->mNumAgents[handle] = sim_agent_count; // override mNumAgents for this sim 894 LLWorldMap::getInstance()->mNumAgents[handle] = sim_agent_count; // override mNumAgents for this sim
893 } 895 }
@@ -902,7 +904,7 @@ void LLWorldMapView::drawAgents()
902 region_center[VY] += REGION_WIDTH_METERS / 2; 904 region_center[VY] += REGION_WIDTH_METERS / 2;
903 // Reduce the stack size as you zoom out - always display at lease one agent where there is one or more 905 // Reduce the stack size as you zoom out - always display at lease one agent where there is one or more
904 S32 agent_count = (S32)(((num_agents-1) * agents_scale + (num_agents-1) * 0.1f)+.1f) + 1; 906 S32 agent_count = (S32)(((num_agents-1) * agents_scale + (num_agents-1) * 0.1f)+.1f) + 1;
905 drawImageStack(region_center, sAvatarSmallImage, agent_count, 3.f, gAvatarMapColor); 907 drawImageStack(region_center, sAvatarSmallImage, agent_count, 3.f, glyph_color_avatar);
906 } 908 }
907 } 909 }
908 } 910 }