summaryrefslogtreecommitdiff
path: root/src/net/tmwa
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/tmwa')
-rw-r--r--src/net/tmwa/charserverhandler.cpp4
-rw-r--r--src/net/tmwa/charserverhandler.h1
-rw-r--r--src/net/tmwa/network.h2
3 files changed, 5 insertions, 2 deletions
diff --git a/src/net/tmwa/charserverhandler.cpp b/src/net/tmwa/charserverhandler.cpp
index 545c36611..7f091bc67 100644
--- a/src/net/tmwa/charserverhandler.cpp
+++ b/src/net/tmwa/charserverhandler.cpp
@@ -408,7 +408,7 @@ void CharServerHandler::chooseCharacter(Net::Character *character)
void CharServerHandler::newCharacter(const std::string &name, int slot,
bool gender _UNUSED_, int hairstyle,
- int hairColor,
+ int hairColor, unsigned char race,
const std::vector<int> &stats)
{
MessageOut outMsg(CMSG_CHAR_CREATE);
@@ -419,6 +419,8 @@ void CharServerHandler::newCharacter(const std::string &name, int slot,
outMsg.writeInt8(static_cast<unsigned char>(slot));
outMsg.writeInt16(static_cast<short>(hairColor));
outMsg.writeInt16(static_cast<short>(hairstyle));
+ if (serverVersion >= 2)
+ outMsg.writeInt8(race);
}
void CharServerHandler::deleteCharacter(Net::Character *character)
diff --git a/src/net/tmwa/charserverhandler.h b/src/net/tmwa/charserverhandler.h
index 9d65639b9..7e843ffec 100644
--- a/src/net/tmwa/charserverhandler.h
+++ b/src/net/tmwa/charserverhandler.h
@@ -65,6 +65,7 @@ class CharServerHandler : public MessageHandler, public Net::CharHandler
void newCharacter(const std::string &name, int slot,
bool gender, int hairstyle, int hairColor,
+ unsigned char race,
const std::vector<int> &stats);
void deleteCharacter(Net::Character *character);
diff --git a/src/net/tmwa/network.h b/src/net/tmwa/network.h
index 4a554f9eb..757358c25 100644
--- a/src/net/tmwa/network.h
+++ b/src/net/tmwa/network.h
@@ -39,7 +39,7 @@
* Protocol version, reported to the eAthena char and mapserver who can adjust
* the protocol accordingly.
*/
-#define CLIENT_PROTOCOL_VERSION 3
+#define CLIENT_PROTOCOL_VERSION 4
#define CLIENT_TMW_PROTOCOL_VERSION 1
namespace TmwAthena