diff options
Diffstat (limited to 'src/listeners/awaylistener.cpp')
-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(); |