diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-20 19:34:22 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-20 19:34:22 +0300 |
commit | d50ef0a41191beb164e9dddc87f6ffadea5b5cc8 (patch) | |
tree | 9911b35ebbbcc8658b5bb8c517b034a5131061e4 /src/net/eathena/playerhandler.cpp | |
parent | d9773c380e06c089cfee85f07a81ab9167af2982 (diff) | |
download | mv-d50ef0a41191beb164e9dddc87f6ffadea5b5cc8.tar.gz mv-d50ef0a41191beb164e9dddc87f6ffadea5b5cc8.tar.bz2 mv-d50ef0a41191beb164e9dddc87f6ffadea5b5cc8.tar.xz mv-d50ef0a41191beb164e9dddc87f6ffadea5b5cc8.zip |
Move processMapMask from ea namespace to eathena.
Diffstat (limited to 'src/net/eathena/playerhandler.cpp')
-rw-r--r-- | src/net/eathena/playerhandler.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/net/eathena/playerhandler.cpp b/src/net/eathena/playerhandler.cpp index d1c48bfbd..486d3dd30 100644 --- a/src/net/eathena/playerhandler.cpp +++ b/src/net/eathena/playerhandler.cpp @@ -23,6 +23,7 @@ #include "net/eathena/playerhandler.h" #include "configuration.h" +#include "game.h" #include "being/beingflag.h" #include "being/localplayer.h" @@ -41,6 +42,8 @@ #include "utils/stringutils.h" +#include "resources/map/map.h" + #include "debug.h" extern Net::PlayerHandler *playerHandler; @@ -729,4 +732,13 @@ void PlayerHandler::processOnlineList(Net::MessageIn &msg) BLOCK_END("PlayerHandler::processOnlineList") } +void PlayerHandler::processMapMask(Net::MessageIn &msg) +{ + const int mask = msg.readInt32("mask"); + msg.readInt32("unused"); + Map *const map = Game::instance()->getCurrentMap(); + if (map) + map->setMask(mask); +} + } // namespace EAthena |