mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-21 09:09:43 +00:00
Merge branch 'savedgamehealth' into 'master'
Cast displayed health to int in saved game dialog (#7656) Closes #7656 See merge request OpenMW/openmw!3563
This commit is contained in:
commit
5356f54526
1 changed files with 2 additions and 2 deletions
|
@ -413,8 +413,8 @@ namespace MWGui
|
|||
text << Misc::fileTimeToString(mCurrentSlot->mTimeStamp, "%Y.%m.%d %T") << "\n";
|
||||
|
||||
if (mCurrentSlot->mProfile.mMaximumHealth > 0)
|
||||
text << std::fixed << std::setprecision(0) << "#{sHealth} " << mCurrentSlot->mProfile.mCurrentHealth << "/"
|
||||
<< mCurrentSlot->mProfile.mMaximumHealth << "\n";
|
||||
text << "#{sHealth} " << static_cast<int>(mCurrentSlot->mProfile.mCurrentHealth) << "/"
|
||||
<< static_cast<int>(mCurrentSlot->mProfile.mMaximumHealth) << "\n";
|
||||
|
||||
text << "#{sLevel} " << mCurrentSlot->mProfile.mPlayerLevel << "\n";
|
||||
text << "#{sCell=" << mCurrentSlot->mProfile.mPlayerCellName << "}\n";
|
||||
|
|
Loading…
Reference in a new issue