summaryrefslogtreecommitdiff
path: root/src/gui/popups
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-07-20 20:58:31 +0300
committerAndrei Karas <akaras@inbox.ru>2014-07-21 00:18:17 +0300
commit744b9d6689b67779a1d17c6d3de7cd016ca1033b (patch)
tree8c7f235ec6ffd1f00bd6865a355be3f731b30395 /src/gui/popups
parentc42d25a77f5bd7bcd04636abded20452a753fa6d (diff)
downloadmanaplus-744b9d6689b67779a1d17c6d3de7cd016ca1033b.tar.gz
manaplus-744b9d6689b67779a1d17c6d3de7cd016ca1033b.tar.bz2
manaplus-744b9d6689b67779a1d17c6d3de7cd016ca1033b.tar.xz
manaplus-744b9d6689b67779a1d17c6d3de7cd016ca1033b.zip
move "change move" option into gamemodifiers.
Diffstat (limited to 'src/gui/popups')
-rw-r--r--src/gui/popups/statuspopup.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/popups/statuspopup.cpp b/src/gui/popups/statuspopup.cpp
index 688898afe..23c0f313f 100644
--- a/src/gui/popups/statuspopup.cpp
+++ b/src/gui/popups/statuspopup.cpp
@@ -23,6 +23,8 @@
#include "gui/viewport.h"
+#include "gamemodifiers.h"
+
#include "gui/popups/statuspopup.h"
#include "gui/widgets/label.h"
@@ -135,10 +137,10 @@ void StatusPopup::setLabelText(const int num,
void StatusPopup::updateLabels() const
{
- if (!player_node || !viewport)
+ if (!player_node || !viewport || !modifiers)
return;
- setLabelText(0, player_node->getMoveTypeString(),
+ setLabelText(0, modifiers->getMoveTypeString(),
InputAction::INVERT_DIRECTION);
setLabelText(1, player_node->getCrazyMoveTypeString(),
InputAction::CHANGE_CRAZY_MOVES_TYPE);