summaryrefslogtreecommitdiff
path: root/src/net/tmwa/charserverhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-06-11 23:40:50 +0300
committerAndrei Karas <akaras@inbox.ru>2013-06-12 01:39:53 +0300
commit95100fc5191ea6e2e379ca73cd4e67bee4376ba1 (patch)
tree1232af2b6d9a85e28a46b126140af54d8de3b9fc /src/net/tmwa/charserverhandler.cpp
parentfe01452d2448a8033dfff33a052f5a674dfc1a43 (diff)
downloadmv-95100fc5191ea6e2e379ca73cd4e67bee4376ba1.tar.gz
mv-95100fc5191ea6e2e379ca73cd4e67bee4376ba1.tar.bz2
mv-95100fc5191ea6e2e379ca73cd4e67bee4376ba1.tar.xz
mv-95100fc5191ea6e2e379ca73cd4e67bee4376ba1.zip
add support for player look.
Diffstat (limited to 'src/net/tmwa/charserverhandler.cpp')
-rw-r--r--src/net/tmwa/charserverhandler.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/net/tmwa/charserverhandler.cpp b/src/net/tmwa/charserverhandler.cpp
index 68699e327..64626becb 100644
--- a/src/net/tmwa/charserverhandler.cpp
+++ b/src/net/tmwa/charserverhandler.cpp
@@ -248,6 +248,7 @@ void CharServerHandler::newCharacter(const std::string &name, const int slot,
const int hairstyle,
const int hairColor,
const unsigned char race,
+ const unsigned char look,
const std::vector<int> &stats) const
{
MessageOut outMsg(CMSG_CHAR_CREATE);
@@ -259,7 +260,10 @@ void CharServerHandler::newCharacter(const std::string &name, const int slot,
outMsg.writeInt8(static_cast<int8_t>(hairColor));
outMsg.writeInt8(0); // unused
outMsg.writeInt8(static_cast<int8_t>(hairstyle));
- outMsg.writeInt8(123); // look
+ if (serverVersion >= 9)
+ outMsg.writeInt8(look);
+ else
+ outMsg.writeInt8(0);
if (serverVersion >= 2)
outMsg.writeInt8(race);
}