From 4f5d676b4e76cd4a2cd41e6ecb337e883da7940c Mon Sep 17 00:00:00 2001 From: Allofich Date: Sun, 14 Aug 2016 19:15:28 +0900 Subject: [PATCH] Allow weight tooltips for gold and keys if not 0 --- apps/openmw/mwclass/misc.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/openmw/mwclass/misc.cpp b/apps/openmw/mwclass/misc.cpp index 2f41fca30..1d1bfb047 100644 --- a/apps/openmw/mwclass/misc.cpp +++ b/apps/openmw/mwclass/misc.cpp @@ -159,11 +159,9 @@ namespace MWClass std::string text; + text += MWGui::ToolTips::getValueString(ref->mBase->mData.mWeight, "#{sWeight}"); if (!gold && !ref->mBase->mData.mIsKey) - { - text += "\n#{sWeight}: " + MWGui::ToolTips::toString(ref->mBase->mData.mWeight); text += MWGui::ToolTips::getValueString(getValue(ptr), "#{sValue}"); - } if (MWBase::Environment::get().getWindowManager()->getFullHelp()) { text += MWGui::ToolTips::getCellRefString(ptr.getCellRef());