diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-09-28 18:56:57 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-09-28 18:56:57 +0300 |
commit | e86d962268592850430f15cf11495473a38041f9 (patch) | |
tree | c7d8629d718d104c24b9f95360bc26fd6781a74e /src/net/eathena/battlegroundrecv.cpp | |
parent | b6d994ed88ec99d08ef60a9ee567687873a18a30 (diff) | |
download | mv-e86d962268592850430f15cf11495473a38041f9.tar.gz mv-e86d962268592850430f15cf11495473a38041f9.tar.bz2 mv-e86d962268592850430f15cf11495473a38041f9.tar.xz mv-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.cpp | 18 |
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) |