summaryrefslogtreecommitdiff
path: root/src/net/eathena/playerhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-07-27 20:51:14 +0300
committerAndrei Karas <akaras@inbox.ru>2018-07-27 20:51:14 +0300
commitf0a0e1eff7be666ec963440de0a1fbcddf1d407e (patch)
tree447f8d04a19db075430120ef406d662c44700df0 /src/net/eathena/playerhandler.cpp
parentb27338573f455ac730e6bcca9d46b50391ddf7b3 (diff)
downloadmanaverse-f0a0e1eff7be666ec963440de0a1fbcddf1d407e.tar.gz
manaverse-f0a0e1eff7be666ec963440de0a1fbcddf1d407e.tar.bz2
manaverse-f0a0e1eff7be666ec963440de0a1fbcddf1d407e.tar.xz
manaverse-f0a0e1eff7be666ec963440de0a1fbcddf1d407e.zip
Add packet CMSG_PLAYER_SELECT_STYLE 0x0afc.
Diffstat (limited to 'src/net/eathena/playerhandler.cpp')
-rw-r--r--src/net/eathena/playerhandler.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/net/eathena/playerhandler.cpp b/src/net/eathena/playerhandler.cpp
index 0380ec098..a70d130cf 100644
--- a/src/net/eathena/playerhandler.cpp
+++ b/src/net/eathena/playerhandler.cpp
@@ -46,6 +46,7 @@
#include "debug.h"
extern int packetVersion;
+extern int packetVersionRe;
extern int serverVersion;
namespace EAthena
@@ -795,7 +796,8 @@ void PlayerHandler::selectStyle(const int headColor,
const int bodyColor,
const int topStyle,
const int middleStyle,
- const int bottomStyle) const
+ const int bottomStyle,
+ const int bodyStyle) const
{
if (packetVersion < 20151104)
return;
@@ -806,6 +808,8 @@ void PlayerHandler::selectStyle(const int headColor,
outMsg.writeInt16(CAST_S16(topStyle), "top style");
outMsg.writeInt16(CAST_S16(middleStyle), "middle style");
outMsg.writeInt16(CAST_S16(bottomStyle), "bottom style");
+ if (packetVersionRe >= 20180718)
+ outMsg.writeInt16(CAST_S16(bodyStyle), "body style");
}
#undef setStatComplex