diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-13 16:06:20 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-13 16:06:20 +0300 |
commit | 3bbf7407ac14ec84329ad85fd8552e36872b3476 (patch) | |
tree | 4f2dc1779957adcea79dd756964fdf8a6fea9335 /src/being/localplayer.cpp | |
parent | 13baf331faa43913cb836661113ba63d3c2bc0a3 (diff) | |
download | mv-3bbf7407ac14ec84329ad85fd8552e36872b3476.tar.gz mv-3bbf7407ac14ec84329ad85fd8552e36872b3476.tar.bz2 mv-3bbf7407ac14ec84329ad85fd8552e36872b3476.tar.xz mv-3bbf7407ac14ec84329ad85fd8552e36872b3476.zip |
Move awaylistener into separate file.
Diffstat (limited to 'src/being/localplayer.cpp')
-rw-r--r-- | src/being/localplayer.cpp | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/being/localplayer.cpp b/src/being/localplayer.cpp index b64c494b7..37a960dae 100644 --- a/src/being/localplayer.cpp +++ b/src/being/localplayer.cpp @@ -73,6 +73,7 @@ #include "resources/map/mapitem.h" #include "resources/map/speciallayer.h" +#include "listeners/awaylistener.h" #include "listeners/updatestatuslistener.h" #include "utils/delete2.h" @@ -3813,15 +3814,3 @@ void LocalPlayer::setTestParticle(const std::string &fileName, mTestParticleHash = UpdaterWindow::getFileHash(mTestParticleName); } } - -void AwayListener::action(const ActionEvent &event) -{ - if (event.getId() == "ok" && player_node && player_node->getAway()) - { - player_node->changeAwayMode(); - player_node->updateStatus(); - if (outfitWindow) - outfitWindow->unwearAwayOutfit(); - UpdateStatusListener::distributeEvent(); - } -} |