diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-03-21 21:28:24 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-03-21 21:28:24 +0300 |
commit | 3b71334296de5b53d2a6fa64c33b283ca3fa2a71 (patch) | |
tree | 1cea04790aaaa3e6219dc052469d026ebb079b95 /src/gui/popups/beingpopup.cpp | |
parent | d65b19913092fa0ebe8848c0c902e6ee487d55c9 (diff) | |
download | mv-3b71334296de5b53d2a6fa64c33b283ca3fa2a71.tar.gz mv-3b71334296de5b53d2a6fa64c33b283ca3fa2a71.tar.bz2 mv-3b71334296de5b53d2a6fa64c33b283ca3fa2a71.tar.xz mv-3b71334296de5b53d2a6fa64c33b283ca3fa2a71.zip |
Show effect names in debug window in target tab.
Diffstat (limited to 'src/gui/popups/beingpopup.cpp')
-rw-r--r-- | src/gui/popups/beingpopup.cpp | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/src/gui/popups/beingpopup.cpp b/src/gui/popups/beingpopup.cpp index f3d9195cc..fe70d9ad7 100644 --- a/src/gui/popups/beingpopup.cpp +++ b/src/gui/popups/beingpopup.cpp @@ -339,25 +339,12 @@ void BeingPopup::show(const int x, const int y, Being *const b) label6 = nullptr; } - const std::set<int> &effects = b->getStatusEffects(); + const std::string effects = b->getStatusEffectsString(); if (!effects.empty()) { - std::string effectsStr; - FOR_EACH (std::set<int>::const_iterator, it, effects) - { - const StatusEffect *const effect = - StatusEffectDB::getStatusEffect( - *it, - Enable_true); - if (!effect) - continue; - if (!effectsStr.empty()) - effectsStr.append(", "); - effectsStr.append(effect->mName); - } // TRANSLATORS: being popup label label7->setCaption(strprintf(_("Effects: %s"), - effectsStr.c_str())); + effects.c_str())); label7->adjustSize(); } else |