Add colors to the radar as well, there were some crashes for Estate owner detection, but they should be fixed (need to check on the minimap.)

This commit is contained in:
Hazim Gazov
2010-08-15 23:18:40 +00:00
parent 78f3cae804
commit c31782846c
3 changed files with 44 additions and 3 deletions

View File

@@ -351,13 +351,15 @@ void LLNetMap::draw()
gCacheName->getFullName(avatar_ids[i], avName);
LLUUID estate_owner = LLWorld::getInstance()->getRegionFromPosGlobal(positions[i])->getOwner();
//Lindens are always more Linden than your friend, make that take precedence
if(LLMuteList::getInstance()->isLinden(avName))
{
avColor = gColors.getColor( "MapLinden" );
}
//check if they are an estate owner at their current position
else if(avatar_ids[i] == LLWorld::getInstance()->getRegionFromPosGlobal(positions[i])->getOwner())
else if(estate_owner.notNull() && avatar_ids[i] == estate_owner)
{
avColor = gColors.getColor( "MapEstateOwner" );
}