summaryrefslogtreecommitdiff
path: root/src/net/eathena
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/eathena
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/eathena')
-rw-r--r--src/net/eathena/packetsin.inc2
-rw-r--r--src/net/eathena/playerrecv.cpp9
-rw-r--r--src/net/eathena/playerrecv.h1
3 files changed, 1 insertions, 11 deletions
diff --git a/src/net/eathena/packetsin.inc b/src/net/eathena/packetsin.inc
index 3995be748..eeb955fef 100644
--- a/src/net/eathena/packetsin.inc
+++ b/src/net/eathena/packetsin.inc
@@ -212,7 +212,7 @@ packet(SMSG_MANNER_MESSAGE, 0x014a, 6, &ChatRecv::processManner
packet(SMSG_MAP_ACCOUNT_ID, 0x0283, 6, &GameRecv::processMapAccountId);
packet(SMSG_MAP_AUTH_REFUSE, 0x0074, 3, &GameRecv::processMapAuthRefuse);
packet(SMSG_MAP_LOGIN_SUCCESS, 0x0a18, 14, &GameRecv::processMapLogin);
-packet(SMSG_MAP_MASK, 0x0b02, 10, &PlayerRecv::processMapMask);
+packet(SMSG_MAP_MASK, 0x0b02, 10, &Ea::PlayerRecv::processMapMask);
packet(SMSG_MAP_MUSIC, 0x0b05, -1, &Ea::PlayerRecv::processMapMusic);
packet(SMSG_MAP_NOT_FOUND, 0x0840, -1, &GeneralRecv::processMapNotFound);
packet(SMSG_MAP_QUIT_RESPONSE, 0x018b, 4, &Ea::GameRecv::processMapQuitResponse);
diff --git a/src/net/eathena/playerrecv.cpp b/src/net/eathena/playerrecv.cpp
index fbde1fb2f..4dcfd98bd 100644
--- a/src/net/eathena/playerrecv.cpp
+++ b/src/net/eathena/playerrecv.cpp
@@ -422,13 +422,4 @@ void PlayerRecv::processOnlineList(Net::MessageIn &msg)
BLOCK_END("PlayerRecv::processOnlineList")
}
-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 EAthena
diff --git a/src/net/eathena/playerrecv.h b/src/net/eathena/playerrecv.h
index 242e62838..1ab4128be 100644
--- a/src/net/eathena/playerrecv.h
+++ b/src/net/eathena/playerrecv.h
@@ -51,7 +51,6 @@ namespace EAthena
void processPlayerRankPoints(Net::MessageIn &msg);
void processPlayerClientCommand(Net::MessageIn &msg);
void processOnlineList(Net::MessageIn &msg);
- void processMapMask(Net::MessageIn &msg);
} // namespace PlayerRecv
} // namespace EAthena