Magic Effect Display cleanup: Don't put spaces in percentages.

actorid
Jordan Ayers 11 years ago
parent 707f45aa8e
commit 6303e56ce4

@ -190,11 +190,11 @@ namespace MWGui
(it->first >= 28 && it->first <= 36) || // Weakness effects
(it->first >= 90 && it->first <= 99) ); // Resistance effects
sourcesDescription += ": " + boost::lexical_cast<std::string>(effectIt->mMagnitude) + " ";
sourcesDescription += ": " + boost::lexical_cast<std::string>(effectIt->mMagnitude);
if ( usePct )
sourcesDescription += pct;
else
sourcesDescription += ((effectIt->mMagnitude > 1) ? pts : pt);
sourcesDescription += " " + ((effectIt->mMagnitude > 1) ? pts : pt);
}
}
}

@ -447,15 +447,15 @@ namespace MWGui
(mEffectParams.mEffectID >= 28 && mEffectParams.mEffectID <= 36) || // Weakness effects
(mEffectParams.mEffectID >= 90 && mEffectParams.mEffectID <= 99) ); // Resistance effects
if (mEffectParams.mMagnMin == mEffectParams.mMagnMax)
spellLine += " " + boost::lexical_cast<std::string>(mEffectParams.mMagnMin) + " ";
spellLine += " " + boost::lexical_cast<std::string>(mEffectParams.mMagnMin);
else
{
spellLine += " " + boost::lexical_cast<std::string>(mEffectParams.mMagnMin) + to + boost::lexical_cast<std::string>(mEffectParams.mMagnMax) + " ";
spellLine += " " + boost::lexical_cast<std::string>(mEffectParams.mMagnMin) + to + boost::lexical_cast<std::string>(mEffectParams.mMagnMax);
}
if ( usePct )
spellLine += pct;
else
spellLine += ((mEffectParams.mMagnMin == 1 && mEffectParams.mMagnMax == 1) ? pt : pts );
spellLine += " " + ((mEffectParams.mMagnMin == 1 && mEffectParams.mMagnMax == 1) ? pt : pts );
}
}

Loading…
Cancel
Save