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

This commit is contained in:
Jordan Ayers 2013-10-06 20:35:59 -05:00
parent 707f45aa8e
commit 6303e56ce4
2 changed files with 5 additions and 5 deletions
apps/openmw/mwgui

View file

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

View file

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