summaryrefslogtreecommitdiff
path: root/src/net/eathena/battlegroundrecv.cpp
diff options
context:
space:
mode:
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)