From 3b71334296de5b53d2a6fa64c33b283ca3fa2a71 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 21 Mar 2016 21:28:24 +0300 Subject: Show effect names in debug window in target tab. --- src/gui/popups/beingpopup.cpp | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) (limited to 'src/gui/popups/beingpopup.cpp') 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 &effects = b->getStatusEffects(); + const std::string effects = b->getStatusEffectsString(); if (!effects.empty()) { - std::string effectsStr; - FOR_EACH (std::set::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 -- cgit v1.2.3-70-g09d2