diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-07-14 01:54:02 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-07-14 01:54:02 +0300 |
commit | 37976a30f4f6ae3cb7fa25a54b640ae37b608bdf (patch) | |
tree | 787e862ce3c48be339906baeb13dd3bbf513e380 /src/net/eathena/playerhandler.cpp | |
parent | 21ff910b7b30b1a515db24e890d3a7b443b2d859 (diff) | |
download | manaverse-37976a30f4f6ae3cb7fa25a54b640ae37b608bdf.tar.gz manaverse-37976a30f4f6ae3cb7fa25a54b640ae37b608bdf.tar.bz2 manaverse-37976a30f4f6ae3cb7fa25a54b640ae37b608bdf.tar.xz manaverse-37976a30f4f6ae3cb7fa25a54b640ae37b608bdf.zip |
Rename packet CMSG_PLAYER_SET_EQUIPMENT_VISIBLE into CMSG_SET_CONFIG_OPTION.
For now unused.
Diffstat (limited to 'src/net/eathena/playerhandler.cpp')
-rw-r--r-- | src/net/eathena/playerhandler.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/net/eathena/playerhandler.cpp b/src/net/eathena/playerhandler.cpp index e22ca822b..d82e28a05 100644 --- a/src/net/eathena/playerhandler.cpp +++ b/src/net/eathena/playerhandler.cpp @@ -503,11 +503,12 @@ void PlayerHandler::revive() const createOutPacket(CMSG_PLAYER_AUTO_REVIVE); } -void PlayerHandler::setViewEquipment(const bool allow) const +void PlayerHandler::setConfigOption(const int id, + const int data) const { - createOutPacket(CMSG_PLAYER_SET_EQUIPMENT_VISIBLE); - outMsg.writeInt32(0, "unused"); - outMsg.writeInt32(allow ? 1 : 0, "allow"); + createOutPacket(CMSG_SET_CONFIG_OPTION); + outMsg.writeInt32(id, "config option"); + outMsg.writeInt32(data, "config data"); } #define setStatComplex(stat) \ |