summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorCosmic Linden <cosmic@lindenlab.com>2022-04-05 11:53:38 -0700
committerCosmic Linden <cosmic@lindenlab.com>2022-04-05 11:55:33 -0700
commit6013e68ea2d2ca65bac912a295a8521c22a72325 (patch)
treeb45be4339f2fa8f5225f143ad6d46b1ceff362cd /indra/newview
parentc8eb9f54c4aa3b72184eb8a6bfc1ec6fd22320b7 (diff)
SL-16918: Fix unneeded assignment to centered in LLNetMap::draw()
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llnetmap.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/indra/newview/llnetmap.cpp b/indra/newview/llnetmap.cpp
index 387964f4e8..66cf6272fd 100644
--- a/indra/newview/llnetmap.cpp
+++ b/indra/newview/llnetmap.cpp
@@ -172,13 +172,12 @@ void LLNetMap::draw()
static LLUICachedControl<bool> auto_center("MiniMapAutoCenter", true);
bool auto_centering = auto_center && !mPanning;
mCentering = mCentering && !mPanning;
- bool centered = mCurPan.mV[VX] == 0.0f && mCurPan.mV[VY] == 0.0f;
if (auto_centering || mCentering)
{
mCurPan = lerp(mCurPan, LLVector2(0.0f, 0.0f) , LLSmoothInterpolation::getInterpolant(0.1f));
}
- centered = abs(mCurPan.mV[VX]) < 0.5f && abs(mCurPan.mV[VY]) < 0.5f;
+ bool centered = abs(mCurPan.mV[VX]) < 0.5f && abs(mCurPan.mV[VY]) < 0.5f;
if (centered)
{
mCurPan.mV[0] = 0.0f;