summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoderic Morris <roderic@ccs.neu.edu>2009-02-16 13:31:31 -0500
committerRoderic Morris <roderic@ccs.neu.edu>2009-02-16 13:31:31 -0500
commit401802c1d7a1b3d659bdc53a45d9a6292fc1121e (patch)
treee6118cc0b8d2bf84f948bda193eca94882574131
parent0fd9aef8bf376d44132edded2cdcb41ba7ee5b2f (diff)
downloadmana-client-401802c1d7a1b3d659bdc53a45d9a6292fc1121e.tar.gz
mana-client-401802c1d7a1b3d659bdc53a45d9a6292fc1121e.tar.bz2
mana-client-401802c1d7a1b3d659bdc53a45d9a6292fc1121e.tar.xz
mana-client-401802c1d7a1b3d659bdc53a45d9a6292fc1121e.zip
read hairstyle and gender from the looks change method
-rw-r--r--src/net/beinghandler.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/net/beinghandler.cpp b/src/net/beinghandler.cpp
index f96cdcd5..8f1fb8fd 100644
--- a/src/net/beinghandler.cpp
+++ b/src/net/beinghandler.cpp
@@ -332,7 +332,15 @@ void BeingHandler::handleBeingLooksChangeMessage(MessageIn &msg)
{
Being *being = beingManager->findBeing(msg.readInt16());
if (!being || being->getType() != Being::PLAYER) return;
- handleLooks(static_cast< Player * >(being), msg);
+ Player * player = static_cast< Player * >(being);
+ handleLooks(player, msg);
+ if (msg.getUnreadLength())
+ {
+ int style = msg.readInt16();
+ int color = msg.readInt16();
+ player->setHairStyle(style, color);
+ player->setGender((Gender)msg.readInt16());
+ }
}
void BeingHandler::handleBeingDirChangeMessage(MessageIn &msg)