diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-06-25 23:37:28 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-06-25 23:37:28 +0300 |
commit | 60757643df53ff5d9d6aa361486348bc6d4bf0f2 (patch) | |
tree | 13cf871ba389238ea8c8831f897b6b1135b0ba8e /src/net/eathena/playerhandler.cpp | |
parent | 32e6e1748c3aa26a55ce4f7281107c4334c80ef3 (diff) | |
download | mv-60757643df53ff5d9d6aa361486348bc6d4bf0f2.tar.gz mv-60757643df53ff5d9d6aa361486348bc6d4bf0f2.tar.bz2 mv-60757643df53ff5d9d6aa361486348bc6d4bf0f2.tar.xz mv-60757643df53ff5d9d6aa361486348bc6d4bf0f2.zip |
From eAthena netcode remove some evol packets implimentations.
Diffstat (limited to 'src/net/eathena/playerhandler.cpp')
-rw-r--r-- | src/net/eathena/playerhandler.cpp | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/src/net/eathena/playerhandler.cpp b/src/net/eathena/playerhandler.cpp index a96df306d..dfce8812c 100644 --- a/src/net/eathena/playerhandler.cpp +++ b/src/net/eathena/playerhandler.cpp @@ -54,7 +54,6 @@ PlayerHandler::PlayerHandler() SMSG_PLAYER_STAT_UPDATE_5, SMSG_PLAYER_STAT_UPDATE_6, SMSG_PLAYER_ARROW_MESSAGE, - SMSG_ONLINE_LIST, SMSG_PLAYER_SHORTCUTS, SMSG_PLAYER_SHOW_EQUIP, 0 @@ -104,10 +103,6 @@ void PlayerHandler::handleMessage(Net::MessageIn &msg) processPlayerArrowMessage(msg); break; - case SMSG_ONLINE_LIST: - processOnlineList(msg); - break; - case SMSG_PLAYER_SHORTCUTS: processPlayerShortcuts(msg); break; @@ -222,70 +217,6 @@ void PlayerHandler::respawn() void PlayerHandler::requestOnlineList() { - MessageOut outMsg(CMSG_ONLINE_LIST); -} - -void PlayerHandler::processOnlineList(Net::MessageIn &msg) -{ - if (!whoIsOnline) - return; - - int size = msg.readInt16() - 4; - std::vector<OnlinePlayer*> arr; - - if (!size) - { - if (whoIsOnline) - whoIsOnline->loadList(arr); - return; - } - - char *start = reinterpret_cast<char*>(msg.readBytes(size)); - if (!start) - return; - - char *buf = start; - - int addVal = 1; - if (serverVersion >= 4) - addVal = 3; - - while (buf - start + 1 < size && *(buf + addVal)) - { - unsigned char status = 255; - unsigned char ver = 0; - unsigned char level = 0; - if (serverVersion >= 4) - { - status = *buf; - buf ++; - level = *buf; - buf ++; - ver = *buf; - } - buf ++; - - int gender = GENDER_UNSPECIFIED; - if (serverVersion >= 4) - { - if (config.getBoolValue("showgender")) - { - if (status & Being::FLAG_GENDER_MALE) - gender = GENDER_MALE; - else if (status & Being::FLAG_GENDER_OTHER) - gender = GENDER_OTHER; - else - gender = GENDER_FEMALE; - } - } - arr.push_back(new OnlinePlayer(static_cast<char*>(buf), - status, level, gender, ver)); - buf += strlen(buf) + 1; - } - - if (whoIsOnline) - whoIsOnline->loadList(arr); - delete [] start; } void PlayerHandler::updateStatus(uint8_t status) |