summaryrefslogtreecommitdiff
path: root/src/net/ea
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/ea
parent3f31d4f379f2baa5ae98f3a5f551307735820fa3 (diff)
downloadmv-e0af6cf371bedcfedcba2fb23e166ff5d345c447.tar.gz
mv-e0af6cf371bedcfedcba2fb23e166ff5d345c447.tar.bz2
mv-e0af6cf371bedcfedcba2fb23e166ff5d345c447.tar.xz
mv-e0af6cf371bedcfedcba2fb23e166ff5d345c447.zip
Reserve bits in gender field for future usage.
Diffstat (limited to 'src/net/ea')
-rw-r--r--src/net/ea/beinghandler.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/net/ea/beinghandler.cpp b/src/net/ea/beinghandler.cpp
index c6606fda8..ee070593f 100644
--- a/src/net/ea/beinghandler.cpp
+++ b/src/net/ea/beinghandler.cpp
@@ -239,6 +239,9 @@ void BeingHandler::processBeingVisibleOrMove(Net::MessageIn &msg, bool visible)
msg.readInt8(); // karma
gender = msg.readInt8();
+ // reserving bits for future usage
+ gender &= 1;
+
if (dstBeing->getType() == ActorSprite::PLAYER)
{
dstBeing->setGender((gender == 0)