diff options
Diffstat (limited to 'src/net/eathena/guildrecv.cpp')
-rw-r--r-- | src/net/eathena/guildrecv.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/net/eathena/guildrecv.cpp b/src/net/eathena/guildrecv.cpp index 574090c8f..b5450e1aa 100644 --- a/src/net/eathena/guildrecv.cpp +++ b/src/net/eathena/guildrecv.cpp @@ -802,4 +802,21 @@ void GuildRecv::processOnlineInfo(Net::MessageIn &msg) msg.readInt32("online"); } +void GuildRecv::processGuildSetPosition(Net::MessageIn &msg) +{ + const int positionLen = msg.readInt16("len") - 8; + const BeingId beingId = msg.readBeingId("being id"); + std::string position; + if (positionLen > 0) + { + position = msg.readString(positionLen, "position"); + } + Being *const dstBeing = actorManager->findBeing(beingId); + if (dstBeing != nullptr) + { + dstBeing->setGuildPos(position); + dstBeing->addToCache(); + } +} + } // namespace EAthena |