diff options
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/tmwa/beinghandler.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/net/tmwa/beinghandler.cpp b/src/net/tmwa/beinghandler.cpp index b57269f32..e80dfd8a1 100644 --- a/src/net/tmwa/beinghandler.cpp +++ b/src/net/tmwa/beinghandler.cpp @@ -1613,12 +1613,19 @@ void BeingHandler::processPvpSet(Net::MessageIn &msg) BLOCK_START("BeingHandler::processPvpSet") const BeingId id = msg.readBeingId("being id"); const int rank = msg.readInt32("rank"); - msg.readInt32("num"); + int teamId = 0; + if (serverFeatures->haveTeamId()) + teamId = msg.readInt32("team"); + else + msg.readInt32("num"); if (actorManager) { Being *const dstBeing = actorManager->findBeing(id); if (dstBeing) + { dstBeing->setPvpRank(rank); + dstBeing->setTeamId(teamId); + } } BLOCK_END("BeingHandler::processPvpSet") } |