diff options
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/beinghandler.cpp | 4 | ||||
-rw-r--r-- | src/net/charserverhandler.cpp | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/net/beinghandler.cpp b/src/net/beinghandler.cpp index e95f785e..f8e6baef 100644 --- a/src/net/beinghandler.cpp +++ b/src/net/beinghandler.cpp @@ -125,7 +125,7 @@ void BeingHandler::handleMessage(MessageIn *msg) msg->readInt16(); // manner msg->readInt16(); // karma msg->readInt8(); // unknown - msg->readInt8(); // sex + dstBeing->setSex(1 - msg->readInt8()); // sex if (msg->getId() == SMSG_BEING_MOVE) { @@ -318,7 +318,7 @@ void BeingHandler::handleMessage(MessageIn *msg) msg->readInt32(); // emblem msg->readInt16(); // manner msg->readInt8(); // karma - msg->readInt8(); // sex + dstBeing->setSex(1 - msg->readInt8()); // sex if (msg->getId() == SMSG_PLAYER_MOVE) { diff --git a/src/net/charserverhandler.cpp b/src/net/charserverhandler.cpp index 55bfa0c6..12813795 100644 --- a/src/net/charserverhandler.cpp +++ b/src/net/charserverhandler.cpp @@ -163,6 +163,7 @@ void CharServerHandler::handleMessage(MessageIn *msg) LocalPlayer* CharServerHandler::readPlayerData(MessageIn *msg, int &slot) { LocalPlayer *tempPlayer = new LocalPlayer(mLoginData->account_ID, 0, NULL); + tempPlayer->setSex(1 - mLoginData->sex); tempPlayer->mCharId = msg->readInt32(); tempPlayer->mTotalWeight = 0; |