From 548bcd5e5450afefbbe2625da16aa23333e6b69a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 6 Sep 2015 18:20:07 +0300 Subject: Readd packet SMSG_MAP_MASK (tmwa) --- src/net/ea/playerrecv.cpp | 9 +++++++++ src/net/ea/playerrecv.h | 1 + 2 files changed, 10 insertions(+) (limited to 'src/net/ea') diff --git a/src/net/ea/playerrecv.cpp b/src/net/ea/playerrecv.cpp index e223cfdbb..3780a1d54 100644 --- a/src/net/ea/playerrecv.cpp +++ b/src/net/ea/playerrecv.cpp @@ -224,4 +224,13 @@ void PlayerRecv::processMapMusic(Net::MessageIn &msg) map->setMusicFile(music); } +void PlayerRecv::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/playerrecv.h b/src/net/ea/playerrecv.h index 35ef92d4a..0f8d3371f 100644 --- a/src/net/ea/playerrecv.h +++ b/src/net/ea/playerrecv.h @@ -42,6 +42,7 @@ namespace Ea void processPlayerStatUpdate6(Net::MessageIn &msg); void processPlayerArrowMessage(Net::MessageIn &msg); void processMapMusic(Net::MessageIn &msg); + void processMapMask(Net::MessageIn &msg); } // namespace PlayerRecv static const int NoStat = INT_MAX; -- cgit v1.2.3-70-g09d2