SL-16918: Fix unneeded assignment to centered in LLNetMap::draw()

master
Cosmic Linden 2022-04-05 11:53:38 -07:00
parent c8eb9f54c4
commit 6013e68ea2
1 changed files with 1 additions and 2 deletions

View File

@ -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;