aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llhudeffectlookat.cpp
diff options
context:
space:
mode:
authorMcCabe Maxsted2010-08-26 11:04:43 -0700
committerMcCabe Maxsted2010-09-25 08:35:35 -0700
commitdb9616811d45e168d81c8e464fb8a9cf27e51172 (patch)
treea8539baeb46297d51072285d946f925a8544eb64 /linden/indra/newview/llhudeffectlookat.cpp
parentRevert "Updated boost 1.36 libs for Windows to support local textures (todo: ... (diff)
downloadmeta-impy-db9616811d45e168d81c8e464fb8a9cf27e51172.zip
meta-impy-db9616811d45e168d81c8e464fb8a9cf27e51172.tar.gz
meta-impy-db9616811d45e168d81c8e464fb8a9cf27e51172.tar.bz2
meta-impy-db9616811d45e168d81c8e464fb8a9cf27e51172.tar.xz
Ported gSavedSettings changes from Emerald (as well as modifying a few of ours)
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llhudeffectlookat.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/linden/indra/newview/llhudeffectlookat.cpp b/linden/indra/newview/llhudeffectlookat.cpp
index 58d2c6a..23fc947 100644
--- a/linden/indra/newview/llhudeffectlookat.cpp
+++ b/linden/indra/newview/llhudeffectlookat.cpp
@@ -299,14 +299,14 @@ void LLHUDEffectLookAt::packData(LLMessageSystem *mesgsys)
299 299
300 300
301 bool is_self = source_avatar->isSelf(); 301 bool is_self = source_avatar->isSelf();
302 bool is_private = gSavedSettings.getBOOL("PrivateLookAtTarget"); 302 static BOOL *sPrivateLookAtTarget = rebind_llcontrol<BOOL>("PrivateLookAtTarget", &gSavedSettings, true);
303 if (!is_self) //imprudence TODO: find out why this happens at all and fix there 303 if (!is_self) //imprudence TODO: find out why this happens at all and fix there
304 { 304 {
305 LL_DEBUGS("HUDEffect")<< "Non-self Avatar HUDEffectLookAt message for ID: " << source_avatar->getID().asString() << LL_ENDL; 305 LL_DEBUGS("HUDEffect")<< "Non-self Avatar HUDEffectLookAt message for ID: " << source_avatar->getID().asString() << LL_ENDL;
306 markDead(); 306 markDead();
307 return; 307 return;
308 } 308 }
309 else if (is_private && target_type != LOOKAT_TARGET_AUTO_LISTEN) 309 else if (*sPrivateLookAtTarget && target_type != LOOKAT_TARGET_AUTO_LISTEN)
310 { 310 {
311 //this mimicks "do nothing" 311 //this mimicks "do nothing"
312 target_type = LOOKAT_TARGET_AUTO_LISTEN; 312 target_type = LOOKAT_TARGET_AUTO_LISTEN;
@@ -574,7 +574,8 @@ void LLHUDEffectLookAt::render()
574 } gGL.end(); 574 } gGL.end();
575 gGL.popMatrix(); 575 gGL.popMatrix();
576 576
577 if( gSavedSettings.getBOOL("ShowLookAtNames") ) 577 static BOOL *sEmeraldShowLookAtNames = rebind_llcontrol<BOOL>("EmeraldShowLookAtNames", &gSavedSettings, true);
578 if (*sEmeraldShowLookAtNames)
578 { 579 {
579 const LLFontGL* fontp = LLResMgr::getInstance()->getRes( LLFONT_SANSSERIF_SMALL ); 580 const LLFontGL* fontp = LLResMgr::getInstance()->getRes( LLFONT_SANSSERIF_SMALL );
580 LLGLEnable color_mat(GL_COLOR_MATERIAL); 581 LLGLEnable color_mat(GL_COLOR_MATERIAL);