aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llworldmapview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llworldmapview.cpp')
-rw-r--r--linden/indra/newview/llworldmapview.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/linden/indra/newview/llworldmapview.cpp b/linden/indra/newview/llworldmapview.cpp
index 244ee22..73c2d8b 100644
--- a/linden/indra/newview/llworldmapview.cpp
+++ b/linden/indra/newview/llworldmapview.cpp
@@ -208,8 +208,6 @@ 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");
213} 211}
214 212
215 213
@@ -866,6 +864,9 @@ void LLWorldMapView::drawImageStack(const LLVector3d& global_pos, LLUIImagePtr i
866void LLWorldMapView::drawAgents() 864void LLWorldMapView::drawAgents()
867{ 865{
868 F32 agents_scale = (gMapScale * 0.9f) / 256.f; 866 F32 agents_scale = (gMapScale * 0.9f) / 256.f;
867
868 LLColor4 avatar_color = gColors.getColor( "MapAvatar" );
869 LLColor4 friend_color = gColors.getColor( "MapFriend" );
869 870
870 for (handle_list_t::iterator iter = mVisibleRegions.begin(); iter != mVisibleRegions.end(); ++iter) 871 for (handle_list_t::iterator iter = mVisibleRegions.begin(); iter != mVisibleRegions.end(); ++iter)
871 { 872 {
@@ -888,8 +889,8 @@ void LLWorldMapView::drawAgents()
888 S32 agent_count = info.mExtra; 889 S32 agent_count = info.mExtra;
889 sim_agent_count += info.mExtra; 890 sim_agent_count += info.mExtra;
890 // Here's how we'd choose the color if info.mID were available but it's not being sent: 891 // Here's how we'd choose the color if info.mID were available but it's not being sent:
891 //LLColor4 color = (agent_count == 1 && is_agent_friend(info.mID)) ? glyph_color_friend : glyph_color_avatar; 892 //LLColor4 color = (agent_count == 1 && is_agent_friend(info.mID)) ? friend_color : avatar_color;
892 drawImageStack(info.mPosGlobal, sAvatarSmallImage, agent_count, 3.f, glyph_color_avatar); 893 drawImageStack(info.mPosGlobal, sAvatarSmallImage, agent_count, 3.f, avatar_color);
893 } 894 }
894 LLWorldMap::getInstance()->mNumAgents[handle] = sim_agent_count; // override mNumAgents for this sim 895 LLWorldMap::getInstance()->mNumAgents[handle] = sim_agent_count; // override mNumAgents for this sim
895 } 896 }