aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llhudeffecttrail.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llhudeffecttrail.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/linden/indra/newview/llhudeffecttrail.cpp b/linden/indra/newview/llhudeffecttrail.cpp
index 08f4c78..1b0f3b3 100644
--- a/linden/indra/newview/llhudeffecttrail.cpp
+++ b/linden/indra/newview/llhudeffecttrail.cpp
@@ -181,7 +181,9 @@ void LLHUDEffectSpiral::triggerLocal()
181{ 181{
182 mKillTime = mTimer.getElapsedTimeF32() + mDuration; 182 mKillTime = mTimer.getElapsedTimeF32() + mDuration;
183 183
184 BOOL show_beam = gSavedSettings.getBOOL("ShowSelectionBeam"); 184 static BOOL* sShowSelectionBeam = rebind_llcontrol<BOOL>("ShowSelectionBeam", &gSavedSettings, true);
185
186 BOOL show_beam = *sShowSelectionBeam;
185 187
186 LLColor4 color; 188 LLColor4 color;
187 color.setVec(mColor); 189 color.setVec(mColor);
@@ -278,10 +280,12 @@ void LLHUDEffectSpiral::render()
278{ 280{
279 F32 time = mTimer.getElapsedTimeF32(); 281 F32 time = mTimer.getElapsedTimeF32();
280 282
283 static BOOL* sShowSelectionBeam = rebind_llcontrol<BOOL>("ShowSelectionBeam", &gSavedSettings, true);
284
281 if ((!mSourceObject.isNull() && mSourceObject->isDead()) || 285 if ((!mSourceObject.isNull() && mSourceObject->isDead()) ||
282 (!mTargetObject.isNull() && mTargetObject->isDead()) || 286 (!mTargetObject.isNull() && mTargetObject->isDead()) ||
283 mKillTime < time || 287 mKillTime < time ||
284 (!mPartSourcep.isNull() && !gSavedSettings.getBOOL("ShowSelectionBeam")) ) 288 (!mPartSourcep.isNull() && !*sShowSelectionBeam) )
285 { 289 {
286 markDead(); 290 markDead();
287 return; 291 return;