summaryrefslogtreecommitdiff
path: root/src/net/eathena/battlegroundhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-18 17:14:38 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-18 17:14:38 +0300
commit16c256230774fc1dcdf66f16a70a3cd9f6fd0343 (patch)
treee2a7562894c575727f3fdb5183f4765d70330ccb /src/net/eathena/battlegroundhandler.cpp
parentfbf357addfe7c7d367a3203be3ad78aba278bcf6 (diff)
downloadplus-16c256230774fc1dcdf66f16a70a3cd9f6fd0343.tar.gz
plus-16c256230774fc1dcdf66f16a70a3cd9f6fd0343.tar.bz2
plus-16c256230774fc1dcdf66f16a70a3cd9f6fd0343.tar.xz
plus-16c256230774fc1dcdf66f16a70a3cd9f6fd0343.zip
eathena: add partial support for packet SMSG_BATTLE_JOINED 0x08d9.
Diffstat (limited to 'src/net/eathena/battlegroundhandler.cpp')
-rw-r--r--src/net/eathena/battlegroundhandler.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/net/eathena/battlegroundhandler.cpp b/src/net/eathena/battlegroundhandler.cpp
index 7024f33bc..3cc324392 100644
--- a/src/net/eathena/battlegroundhandler.cpp
+++ b/src/net/eathena/battlegroundhandler.cpp
@@ -44,6 +44,7 @@ BattleGroundHandler::BattleGroundHandler() :
SMSG_BATTLE_QUEUE_ACK,
SMSG_BATTLE_BEGINS,
SMSG_BATTLE_NOTICE_DELETE,
+ SMSG_BATTLE_JOINED,
0
};
handledMessages = _messages;
@@ -82,6 +83,10 @@ void BattleGroundHandler::handleMessage(Net::MessageIn &msg)
processBattleNoticeDelete(msg);
break;
+ case SMSG_BATTLE_JOINED:
+ processBattleJoined(msg);
+ break;
+
default:
break;
}
@@ -139,4 +144,11 @@ void BattleGroundHandler::processBattleNoticeDelete(Net::MessageIn &msg)
msg.readString(24, "bg name");
}
+void BattleGroundHandler::processBattleJoined(Net::MessageIn &msg)
+{
+ UNIMPLIMENTEDPACKET;
+ msg.readString(24, "name");
+ msg.readInt32("position");
+}
+
} // namespace EAthena