diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-02-20 00:15:59 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-02-20 00:15:59 +0300 |
commit | 16121e499c734c00c714abd0998c24f4845329c3 (patch) | |
tree | 8c4455653f645d6e4d2fa5581f3134497a2b0247 /src/net/eathena/playerhandler.cpp | |
parent | 022bc6fb67b8d5bda5e3a3225071ffdabd179b62 (diff) | |
download | manaplus-16121e499c734c00c714abd0998c24f4845329c3.tar.gz manaplus-16121e499c734c00c714abd0998c24f4845329c3.tar.bz2 manaplus-16121e499c734c00c714abd0998c24f4845329c3.tar.xz manaplus-16121e499c734c00c714abd0998c24f4845329c3.zip |
eathena: add packet CMSG_SET_STATUS.
Diffstat (limited to 'src/net/eathena/playerhandler.cpp')
-rw-r--r-- | src/net/eathena/playerhandler.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/net/eathena/playerhandler.cpp b/src/net/eathena/playerhandler.cpp index 601dab1c6..03dbb2cf5 100644 --- a/src/net/eathena/playerhandler.cpp +++ b/src/net/eathena/playerhandler.cpp @@ -251,8 +251,11 @@ void PlayerHandler::requestOnlineList() const { } -void PlayerHandler::updateStatus(const uint8_t status A_UNUSED) const +void PlayerHandler::updateStatus(const uint8_t status) const { + createOutPacket(CMSG_SET_STATUS); + outMsg.writeInt8(status, "status"); + outMsg.writeInt8(0, "unused"); } void PlayerHandler::setShortcut(const int idx, |