diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-07-23 00:39:12 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-07-23 00:39:12 +0300 |
commit | 6336dabcb33ca6b4d417b352fa0b12651b6f4c57 (patch) | |
tree | a84879f46ee80d2f98d0418cbcbbb81e28da8e76 /src/listeners | |
parent | 1995e723df5d5aef32b289c0122493ee6fe18b0e (diff) | |
download | manaverse-6336dabcb33ca6b4d417b352fa0b12651b6f4c57.tar.gz manaverse-6336dabcb33ca6b4d417b352fa0b12651b6f4c57.tar.bz2 manaverse-6336dabcb33ca6b4d417b352fa0b12651b6f4c57.tar.xz manaverse-6336dabcb33ca6b4d417b352fa0b12651b6f4c57.zip |
move "change away type" option into gamemodifiers.
Diffstat (limited to 'src/listeners')
-rw-r--r-- | src/listeners/awaylistener.cpp | 7 |
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(); |