mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-25 15:35:23 +00:00
Reuse a previously-saved value
This commit is contained in:
parent
a98a1cfe3e
commit
12bbecacfd
@ -240,8 +240,8 @@ namespace MWClass
|
||||
std::string text;
|
||||
int lockLevel = ptr.getCellRef().getLockLevel();
|
||||
if (lockLevel > 0 && lockLevel != ESM::UnbreakableLock)
|
||||
text += "\n#{sLockLevel}: " + MWGui::ToolTips::toString(ptr.getCellRef().getLockLevel());
|
||||
else if (ptr.getCellRef().getLockLevel() < 0)
|
||||
text += "\n#{sLockLevel}: " + MWGui::ToolTips::toString(lockLevel);
|
||||
else if (lockLevel < 0)
|
||||
text += "\n#{sUnlocked}";
|
||||
if (ptr.getCellRef().getTrap() != "")
|
||||
text += "\n#{sTrapped}";
|
||||
|
Loading…
x
Reference in New Issue
Block a user