summaryrefslogtreecommitdiff
path: root/src/net/ea
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-28 13:11:51 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-28 13:11:51 +0300
commitad97c3b32b98564b8288152f493e9c29c25e9326 (patch)
tree84a48b4a7120a4268444a421e63ca37cd32bf397 /src/net/ea
parent5207555e9c1ffca77dca0f1544830838b26a0c7e (diff)
downloadmv-ad97c3b32b98564b8288152f493e9c29c25e9326.tar.gz
mv-ad97c3b32b98564b8288152f493e9c29c25e9326.tar.bz2
mv-ad97c3b32b98564b8288152f493e9c29c25e9326.tar.xz
mv-ad97c3b32b98564b8288152f493e9c29c25e9326.zip
eathena: add map mask packet.
Also change network version to 3.
Diffstat (limited to 'src/net/ea')
-rw-r--r--src/net/ea/playerhandler.cpp9
-rw-r--r--src/net/ea/playerhandler.h2
2 files changed, 11 insertions, 0 deletions
diff --git a/src/net/ea/playerhandler.cpp b/src/net/ea/playerhandler.cpp
index 82d9139ee..8fd63a641 100644
--- a/src/net/ea/playerhandler.cpp
+++ b/src/net/ea/playerhandler.cpp
@@ -523,4 +523,13 @@ void PlayerHandler::setStat(const int type,
}
}
+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 Ea
diff --git a/src/net/ea/playerhandler.h b/src/net/ea/playerhandler.h
index 786c63625..211baab2e 100644
--- a/src/net/ea/playerhandler.h
+++ b/src/net/ea/playerhandler.h
@@ -72,6 +72,8 @@ class PlayerHandler notfinal : public Net::PlayerHandler
static void processPlayerStatUpdate6(Net::MessageIn &msg);
static void processPlayerArrowMessage(Net::MessageIn &msg);
+
+ static void processMapMask(Net::MessageIn &msg);
};
} // namespace Ea