From 388f348acf3aeb954dae3160efeb6a8cd5fe6e4a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 12 Nov 2015 18:52:13 +0300 Subject: Remove manaserv related flag for use mana bar. --- src/gui/windows/ministatuswindow.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/gui/windows/ministatuswindow.cpp') diff --git a/src/gui/windows/ministatuswindow.cpp b/src/gui/windows/ministatuswindow.cpp index 6098f59cf..09754420f 100644 --- a/src/gui/windows/ministatuswindow.cpp +++ b/src/gui/windows/ministatuswindow.cpp @@ -69,8 +69,7 @@ MiniStatusWindow::MiniStatusWindow() : mHpBar(createBar(0, 100, 0, ThemeColorId::HP_BAR, ProgressColorId::PROG_HP, "hpprogressbar.xml", "hpprogressbar_fill.xml", "hp bar", _("health bar"))), - mMpBar(gameHandler->canUseMagicBar() - ? createBar(0, 100, 0, playerHandler->canUseMagic() + mMpBar(createBar(0, 100, 0, playerHandler->canUseMagic() ? ThemeColorId::MP_BAR : ThemeColorId::NO_MP_BAR, playerHandler->canUseMagic() ? ProgressColorId::PROG_MP : ProgressColorId::PROG_NO_MP, @@ -79,7 +78,7 @@ MiniStatusWindow::MiniStatusWindow() : playerHandler->canUseMagic() ? "mpprogressbar_fill.xml" : "nompprogressbar_fill.xml", // TRANSLATORS: status bar name - "mp bar", _("mana bar")) : nullptr), + "mp bar", _("mana bar"))), mXpBar(createBar(0, 100, 0, ThemeColorId::XP_BAR, ProgressColorId::PROG_EXP, "xpprogressbar.xml", "xpprogressbar_fill.xml", // TRANSLATORS: status bar name @@ -120,7 +119,7 @@ MiniStatusWindow::MiniStatusWindow() : { StatusWindow::updateHPBar(mHpBar); - if (gameHandler->canUseMagicBar() && statusWindow) + if (statusWindow) statusWindow->updateMPBar(mMpBar); const bool job = serverConfig.getValueBool("showJob", true); -- cgit v1.2.3-70-g09d2