summaryrefslogtreecommitdiff
path: root/src/listeners
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-07-23 00:39:12 +0300
committerAndrei Karas <akaras@inbox.ru>2014-07-23 00:39:12 +0300
commit6336dabcb33ca6b4d417b352fa0b12651b6f4c57 (patch)
treea84879f46ee80d2f98d0418cbcbbb81e28da8e76 /src/listeners
parent1995e723df5d5aef32b289c0122493ee6fe18b0e (diff)
downloadplus-6336dabcb33ca6b4d417b352fa0b12651b6f4c57.tar.gz
plus-6336dabcb33ca6b4d417b352fa0b12651b6f4c57.tar.bz2
plus-6336dabcb33ca6b4d417b352fa0b12651b6f4c57.tar.xz
plus-6336dabcb33ca6b4d417b352fa0b12651b6f4c57.zip
move "change away type" option into gamemodifiers.
Diffstat (limited to 'src/listeners')
-rw-r--r--src/listeners/awaylistener.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/listeners/awaylistener.cpp b/src/listeners/awaylistener.cpp
index 1fb7dd4a9..17e48c1a8 100644
--- a/src/listeners/awaylistener.cpp
+++ b/src/listeners/awaylistener.cpp
@@ -22,6 +22,9 @@
#include "listeners/awaylistener.h"
+#include "gamemodifiers.h"
+#include "settings.h"
+
#include "being/localplayer.h"
#include "gui/windows/outfitwindow.h"
@@ -32,9 +35,9 @@
void AwayListener::action(const ActionEvent &event)
{
- if (event.getId() == "ok" && player_node && player_node->getAway())
+ if (event.getId() == "ok" && modifiers && player_node && settings.awayMode)
{
- player_node->changeAwayMode();
+ modifiers->changeAwayMode();
player_node->updateStatus();
if (outfitWindow)
outfitWindow->unwearAwayOutfit();