summaryrefslogtreecommitdiff
path: root/src/net/eathena/battlegroundrecv.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-09-28 18:56:57 +0300
committerAndrei Karas <akaras@inbox.ru>2015-09-28 18:56:57 +0300
commite86d962268592850430f15cf11495473a38041f9 (patch)
treec7d8629d718d104c24b9f95360bc26fd6781a74e /src/net/eathena/battlegroundrecv.cpp
parentb6d994ed88ec99d08ef60a9ee567687873a18a30 (diff)
downloadplus-e86d962268592850430f15cf11495473a38041f9.tar.gz
plus-e86d962268592850430f15cf11495473a38041f9.tar.bz2
plus-e86d962268592850430f15cf11495473a38041f9.tar.xz
plus-e86d962268592850430f15cf11495473a38041f9.zip
Add packet SMSG_BATTLE_EMBLEM2 0x0b1a.
Also change protocol version to 12.
Diffstat (limited to 'src/net/eathena/battlegroundrecv.cpp')
-rw-r--r--src/net/eathena/battlegroundrecv.cpp18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/net/eathena/battlegroundrecv.cpp b/src/net/eathena/battlegroundrecv.cpp
index 72bfe7d3c..48525a37c 100644
--- a/src/net/eathena/battlegroundrecv.cpp
+++ b/src/net/eathena/battlegroundrecv.cpp
@@ -20,8 +20,11 @@
#include "net/eathena/battlegroundrecv.h"
+#include "actormanager.h"
#include "logger.h"
+#include "being/being.h"
+
#include "net/messagein.h"
#include "debug.h"
@@ -34,7 +37,20 @@ void BattleGroundRecv::processBattleEmblem(Net::MessageIn &msg)
UNIMPLIMENTEDPACKET;
msg.readBeingId("account id");
msg.readString(24, "name");
- msg.readInt16("camp");
+ msg.readInt16("bg id");
+}
+
+void BattleGroundRecv::processBattleEmblem2(Net::MessageIn &msg)
+{
+ const BeingId id = msg.readBeingId("account id");
+ msg.readString(24, "name");
+ msg.readInt16("bg id");
+ const int teamId = msg.readInt16("team id");
+
+ Being *const dstBeing = actorManager->findBeing(id);
+ if (dstBeing)
+ dstBeing->setTeamId(teamId);
+
}
void BattleGroundRecv::processBattleUpdateScore(Net::MessageIn &msg)