summaryrefslogtreecommitdiff
path: root/src/net/tmwa/charserverhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-07-09 00:05:38 +0300
committerAndrei Karas <akaras@inbox.ru>2011-07-09 00:05:38 +0300
commite0af6cf371bedcfedcba2fb23e166ff5d345c447 (patch)
tree889f26a33e59101c3f300d47aeecef9db44d0408 /src/net/tmwa/charserverhandler.cpp
parent3f31d4f379f2baa5ae98f3a5f551307735820fa3 (diff)
downloadplus-e0af6cf371bedcfedcba2fb23e166ff5d345c447.tar.gz
plus-e0af6cf371bedcfedcba2fb23e166ff5d345c447.tar.bz2
plus-e0af6cf371bedcfedcba2fb23e166ff5d345c447.tar.xz
plus-e0af6cf371bedcfedcba2fb23e166ff5d345c447.zip
Reserve bits in gender field for future usage.
Diffstat (limited to 'src/net/tmwa/charserverhandler.cpp')
-rw-r--r--src/net/tmwa/charserverhandler.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/tmwa/charserverhandler.cpp b/src/net/tmwa/charserverhandler.cpp
index 0a28a9a8c..3d605b1ff 100644
--- a/src/net/tmwa/charserverhandler.cpp
+++ b/src/net/tmwa/charserverhandler.cpp
@@ -273,7 +273,8 @@ void CharServerHandler::readPlayerData(Net::MessageIn &msg,
static_cast<LoginHandler*>(Net::getLoginHandler())->getToken();
LocalPlayer *tempPlayer = new LocalPlayer(msg.readInt32(), 0);
- tempPlayer->setGender(token.sex);
+ // reserving bit for future usage
+ tempPlayer->setGender(token.sex & 1);
character->data.mAttributes[EXP] = msg.readInt32();
character->data.mAttributes[MONEY] = msg.readInt32();