summaryrefslogtreecommitdiff
path: root/src/net/tmwa/beinghandler.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/beinghandler.cpp
parent3f31d4f379f2baa5ae98f3a5f551307735820fa3 (diff)
downloadmanaplus-e0af6cf371bedcfedcba2fb23e166ff5d345c447.tar.gz
manaplus-e0af6cf371bedcfedcba2fb23e166ff5d345c447.tar.bz2
manaplus-e0af6cf371bedcfedcba2fb23e166ff5d345c447.tar.xz
manaplus-e0af6cf371bedcfedcba2fb23e166ff5d345c447.zip
Reserve bits in gender field for future usage.
Diffstat (limited to 'src/net/tmwa/beinghandler.cpp')
-rw-r--r--src/net/tmwa/beinghandler.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/net/tmwa/beinghandler.cpp b/src/net/tmwa/beinghandler.cpp
index 7589553ff..d6f67f716 100644
--- a/src/net/tmwa/beinghandler.cpp
+++ b/src/net/tmwa/beinghandler.cpp
@@ -511,8 +511,9 @@ void BeingHandler::processPlayerMoveUpdate(Net::MessageIn &msg, int msgType)
msg.readInt16(); // manner
dstBeing->setStatusEffectBlock(32, msg.readInt16()); // opt3
msg.readInt8(); // karma
- dstBeing->setGender((msg.readInt8() == 0)
- ? GENDER_FEMALE : GENDER_MALE);
+ // reserving bit for future usage
+ dstBeing->setGender(((msg.readInt8() & 1) == 0)
+ ? GENDER_FEMALE : GENDER_MALE);
// Set these after the gender, as the sprites may be gender-specific
dstBeing->setSprite(SPRITE_WEAPON, weapon, "", 1, true);