summaryrefslogtreecommitdiff
path: root/src/net/beinghandler.cpp
diff options
context:
space:
mode:
authorFate <fate.tmw@googlemail.com>2008-11-01 22:39:26 +0000
committerFate <fate.tmw@googlemail.com>2008-11-01 22:39:26 +0000
commit4cfdb3620ccbd0de6bd53c5f22e7b6d3801627bf (patch)
tree20471d3a652d35a193b6c9873b45eded59bd3e63 /src/net/beinghandler.cpp
parent885a9c145464a2b376edfd1c9677b84f6d4a8ce5 (diff)
downloadmana-4cfdb3620ccbd0de6bd53c5f22e7b6d3801627bf.tar.gz
mana-4cfdb3620ccbd0de6bd53c5f22e7b6d3801627bf.tar.bz2
mana-4cfdb3620ccbd0de6bd53c5f22e7b6d3801627bf.tar.xz
mana-4cfdb3620ccbd0de6bd53c5f22e7b6d3801627bf.zip
* Updated GUI table and model to better handle NULL widgets during initialisation
* On SMSG_MOVE et al., ignore boots and glove information-- that information is incorrect and we're guaranteed to already have the correct information anyway. * Properly decode `is dead' information for PCs, so that dead players, when encountered, will be lying on the ground, dead, rather than standing. * Use `skills.xml' file from client data to determine skill names * Report client version number (hereby bumped to 1) in unused charserver slot (ignored by vanilla eAthena)
Diffstat (limited to 'src/net/beinghandler.cpp')
-rw-r--r--src/net/beinghandler.cpp19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/net/beinghandler.cpp b/src/net/beinghandler.cpp
index fa2b6728..1f2463b3 100644
--- a/src/net/beinghandler.cpp
+++ b/src/net/beinghandler.cpp
@@ -405,8 +405,8 @@ void BeingHandler::handleMessage(MessageIn *msg)
headTop = msg->readInt16();
headMid = msg->readInt16();
hairColor = msg->readInt16();
- shoes = msg->readInt16(); // clothes color - "abused" as shoes
- gloves = msg->readInt16(); // head dir - "abused" as gloves
+ msg->readInt16(); // clothes color - Aethyra-"abused" as shoes, we ignore it
+ msg->readInt16(); // head dir - Aethyra-"abused" as gloves, we ignore it
msg->readInt32(); // guild
msg->readInt32(); // emblem
msg->readInt16(); // manner
@@ -419,10 +419,6 @@ void BeingHandler::handleMessage(MessageIn *msg)
dstBeing->setSprite(Being::BOTTOMCLOTHES_SPRITE, headBottom);
dstBeing->setSprite(Being::TOPCLOTHES_SPRITE, headMid);
dstBeing->setSprite(Being::HAT_SPRITE, headTop);
- dstBeing->setSprite(Being::SHOE_SPRITE, shoes);
- // Compensation for the unpatched TMW server
- if (gloves > 10)
- dstBeing->setSprite(Being::GLOVES_SPRITE, gloves);
dstBeing->setSprite(Being::CAPE_SPRITE, cape);
dstBeing->setSprite(Being::MISC1_SPRITE, misc1);
dstBeing->setSprite(Being::MISC2_SPRITE, misc2);
@@ -447,9 +443,14 @@ void BeingHandler::handleMessage(MessageIn *msg)
if (msg->getId() == SMSG_PLAYER_UPDATE_1)
{
- if (msg->readInt8() == 2)
- {
- dstBeing->setAction(Being::SIT);
+ switch (msg->readInt8()) {
+
+ case 1: dstBeing->setAction(Being::DEAD);
+ break;
+
+ case 2: dstBeing->setAction(Being::SIT);
+ break;
+
}
}
else if (msg->getId() == SMSG_PLAYER_MOVE)