mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-25 06:35:30 +00:00
Fix missing \n characters on the active effects tooltips
This commit is contained in:
parent
46fee678a7
commit
80e0fbdd88
@ -79,14 +79,11 @@ namespace MWGui
|
||||
static const float fadeTime = MWBase::Environment::get().getWorld()->getStore().get<ESM::GameSetting>().find("fMagicStartIconBlink")->mValue.getFloat();
|
||||
|
||||
std::vector<MagicEffectInfo>& effectInfos = effectInfoPair.second;
|
||||
bool addNewLine = true;
|
||||
bool addNewLine = false;
|
||||
for (const MagicEffectInfo& effectInfo : effectInfos)
|
||||
{
|
||||
if (addNewLine)
|
||||
{
|
||||
sourcesDescription += "\n";
|
||||
addNewLine = false;
|
||||
}
|
||||
|
||||
// if at least one of the effect sources is permanent, the effect will never wear off
|
||||
if (effectInfo.mPermanent)
|
||||
@ -161,6 +158,8 @@ namespace MWGui
|
||||
sourcesDescription += MWGui::ToolTips::toString(duration) + "s";
|
||||
}
|
||||
}
|
||||
|
||||
addNewLine = true;
|
||||
}
|
||||
|
||||
if (remainingDuration > 0.f)
|
||||
|
Loading…
x
Reference in New Issue
Block a user