1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-07 03:54:40 +00:00

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

View File

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

View File

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