aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llhudeffecttrail.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:50 -0500
committerJacek Antonelli2008-08-15 23:44:50 -0500
commit89fe5dab825a62a0e3fd8d248cbc91c65eb2a426 (patch)
treebcff14b7888d04a2fec799c59369f6095224bd08 /linden/indra/newview/llhudeffecttrail.cpp
parentSecond Life viewer sources 1.13.3.2 (diff)
downloadmeta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.zip
meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.gz
meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.bz2
meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.xz
Second Life viewer sources 1.14.0.0
Diffstat (limited to 'linden/indra/newview/llhudeffecttrail.cpp')
-rw-r--r--linden/indra/newview/llhudeffecttrail.cpp20
1 files changed, 6 insertions, 14 deletions
diff --git a/linden/indra/newview/llhudeffecttrail.cpp b/linden/indra/newview/llhudeffecttrail.cpp
index ac7f22f..cf76357 100644
--- a/linden/indra/newview/llhudeffecttrail.cpp
+++ b/linden/indra/newview/llhudeffecttrail.cpp
@@ -175,7 +175,7 @@ void LLHUDEffectSpiral::triggerLocal()
175 mKillTime = mTimer.getElapsedTimeF32() + mDuration; 175 mKillTime = mTimer.getElapsedTimeF32() + mDuration;
176 176
177 BOOL show_beam = gSavedSettings.getBOOL("ShowSelectionBeam"); 177 BOOL show_beam = gSavedSettings.getBOOL("ShowSelectionBeam");
178 178
179 LLColor4 color; 179 LLColor4 color;
180 color.setVec(mColor); 180 color.setVec(mColor);
181 181
@@ -269,20 +269,12 @@ void LLHUDEffectSpiral::setTargetObject(LLViewerObject *objp)
269 269
270void LLHUDEffectSpiral::render() 270void LLHUDEffectSpiral::render()
271{ 271{
272 if (!mSourceObject.isNull() && mSourceObject->isDead())
273 {
274 markDead();
275 return;
276 }
277
278 if(!mTargetObject.isNull() && mTargetObject->isDead())
279 {
280 markDead();
281 return;
282 }
283
284 F32 time = mTimer.getElapsedTimeF32(); 272 F32 time = mTimer.getElapsedTimeF32();
285 if (mKillTime < time) 273
274 if (!mSourceObject.isNull() && mSourceObject->isDead() ||
275 !mTargetObject.isNull() && mTargetObject->isDead() ||
276 mKillTime < time ||
277 !gSavedSettings.getBOOL("ShowSelectionBeam"))
286 { 278 {
287 markDead(); 279 markDead();
288 return; 280 return;