summaryrefslogtreecommitdiff
path: root/src/net/tmwa/charserverhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-04-09 00:11:05 +0300
committerAndrei Karas <akaras@inbox.ru>2011-04-09 00:11:05 +0300
commit7b06428d3a428828d15a758a4abaee14bfad58a9 (patch)
tree6ce4a59d8d0d78ad88f4d13908f0937f7c85e6e0 /src/net/tmwa/charserverhandler.cpp
parenta54c5dfccb56dc8996f5c7b2a2299a2cb2257f08 (diff)
downloadmanaverse-7b06428d3a428828d15a758a4abaee14bfad58a9.tar.gz
manaverse-7b06428d3a428828d15a758a4abaee14bfad58a9.tar.bz2
manaverse-7b06428d3a428828d15a758a4abaee14bfad58a9.tar.xz
manaverse-7b06428d3a428828d15a758a4abaee14bfad58a9.zip
Add race in char creation dialog. Change client protocol version to 4.
Diffstat (limited to 'src/net/tmwa/charserverhandler.cpp')
-rw-r--r--src/net/tmwa/charserverhandler.cpp4
1 files changed, 3 insertions, 1 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)