mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 09:35:28 +00:00
Merged pull request #1985
This commit is contained in:
commit
032278929b
@ -1385,7 +1385,7 @@ namespace MWGui
|
||||
int durabilityPercent = 100;
|
||||
if (item.getClass().hasItemHealth(item))
|
||||
{
|
||||
durabilityPercent = static_cast<int>(item.getClass().getItemNormalizedHealth(item));
|
||||
durabilityPercent = static_cast<int>(item.getClass().getItemNormalizedHealth(item) * 100);
|
||||
}
|
||||
mHud->setSelectedWeapon(item, durabilityPercent);
|
||||
mInventoryWindow->setTitle(item.getClass().getName(item));
|
||||
|
Loading…
x
Reference in New Issue
Block a user