diff options
author | Lloyd Bryant <lloyd_bryant@netzero.net> | 2008-08-13 15:02:59 +0000 |
---|---|---|
committer | Lloyd Bryant <lloyd_bryant@netzero.net> | 2008-08-13 15:02:59 +0000 |
commit | 94024e2b57b31ee92bb81fc48ce236283330b60c (patch) | |
tree | a526015cfcdd33c3482b710dc4fa22bbec4e0090 /src/net | |
parent | c9175a4d140f4c852aa5195b72ad9bd1ae8d5cee (diff) | |
download | mana-client-94024e2b57b31ee92bb81fc48ce236283330b60c.tar.gz mana-client-94024e2b57b31ee92bb81fc48ce236283330b60c.tar.bz2 mana-client-94024e2b57b31ee92bb81fc48ce236283330b60c.tar.xz mana-client-94024e2b57b31ee92bb81fc48ce236283330b60c.zip |
Added support for different colored fonts for different being types
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/beinghandler.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/net/beinghandler.cpp b/src/net/beinghandler.cpp index a8591fce..34c65d1c 100644 --- a/src/net/beinghandler.cpp +++ b/src/net/beinghandler.cpp @@ -71,6 +71,7 @@ void BeingHandler::handleMessage(MessageIn *msg) Uint16 headTop, headMid, headBottom; Uint16 shoes, gloves, cape, misc1, misc2; Uint16 weapon, shield; + Uint16 gmstatus; Sint16 param1; Sint8 type; Being *srcBeing, *dstBeing; @@ -443,8 +444,9 @@ void BeingHandler::handleMessage(MessageIn *msg) dstBeing->setDirection(dir); } - msg->readInt8(); // unknown - msg->readInt8(); // unknown + gmstatus = msg->readInt16(); + if (gmstatus & 0x01) + dstBeing->setGM(); if (msg->getId() == SMSG_PLAYER_UPDATE_1) { |