mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-05 22:45:32 +00:00
Reuse a previously-saved value
This commit is contained in:
parent
a98a1cfe3e
commit
12bbecacfd
1 changed files with 2 additions and 2 deletions
|
@ -240,8 +240,8 @@ namespace MWClass
|
||||||
std::string text;
|
std::string text;
|
||||||
int lockLevel = ptr.getCellRef().getLockLevel();
|
int lockLevel = ptr.getCellRef().getLockLevel();
|
||||||
if (lockLevel > 0 && lockLevel != ESM::UnbreakableLock)
|
if (lockLevel > 0 && lockLevel != ESM::UnbreakableLock)
|
||||||
text += "\n#{sLockLevel}: " + MWGui::ToolTips::toString(ptr.getCellRef().getLockLevel());
|
text += "\n#{sLockLevel}: " + MWGui::ToolTips::toString(lockLevel);
|
||||||
else if (ptr.getCellRef().getLockLevel() < 0)
|
else if (lockLevel < 0)
|
||||||
text += "\n#{sUnlocked}";
|
text += "\n#{sUnlocked}";
|
||||||
if (ptr.getCellRef().getTrap() != "")
|
if (ptr.getCellRef().getTrap() != "")
|
||||||
text += "\n#{sTrapped}";
|
text += "\n#{sTrapped}";
|
||||||
|
|
Loading…
Reference in a new issue