summaryrefslogtreecommitdiff
path: root/src/net/ea
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-09-06 18:20:07 +0300
committerAndrei Karas <akaras@inbox.ru>2015-09-06 18:20:07 +0300
commit548bcd5e5450afefbbe2625da16aa23333e6b69a (patch)
treebc3e368c9fb8dd53497231e16929f90f89d5907c /src/net/ea
parentaa5398300e95ad3075a3aab74b5ddeebf597d671 (diff)
downloadplus-548bcd5e5450afefbbe2625da16aa23333e6b69a.tar.gz
plus-548bcd5e5450afefbbe2625da16aa23333e6b69a.tar.bz2
plus-548bcd5e5450afefbbe2625da16aa23333e6b69a.tar.xz
plus-548bcd5e5450afefbbe2625da16aa23333e6b69a.zip
Readd packet SMSG_MAP_MASK (tmwa)
Diffstat (limited to 'src/net/ea')
-rw-r--r--src/net/ea/playerrecv.cpp9
-rw-r--r--src/net/ea/playerrecv.h1
2 files changed, 10 insertions, 0 deletions
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;