summaryrefslogtreecommitdiff
path: root/src/net/charserverhandler.cpp
diff options
context:
space:
mode:
authorLloyd Bryant <lloyd_bryant@netzero.net>2008-07-18 22:35:01 +0000
committerLloyd Bryant <lloyd_bryant@netzero.net>2008-07-18 22:35:01 +0000
commitb1d854bfcd7d62ed7938ef404a5684f271ea4dd3 (patch)
treee4295d8eb46362a0b8307efce684003f6c5c1628 /src/net/charserverhandler.cpp
parent159285c5aa24611ceee7e3847a87bf9ea5f7fb7a (diff)
downloadmana-b1d854bfcd7d62ed7938ef404a5684f271ea4dd3.tar.gz
mana-b1d854bfcd7d62ed7938ef404a5684f271ea4dd3.tar.bz2
mana-b1d854bfcd7d62ed7938ef404a5684f271ea4dd3.tar.xz
mana-b1d854bfcd7d62ed7938ef404a5684f271ea4dd3.zip
Added support for animated shoe and glove sprites
Diffstat (limited to 'src/net/charserverhandler.cpp')
-rw-r--r--src/net/charserverhandler.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/net/charserverhandler.cpp b/src/net/charserverhandler.cpp
index 91f098ba..b421bc2b 100644
--- a/src/net/charserverhandler.cpp
+++ b/src/net/charserverhandler.cpp
@@ -191,7 +191,10 @@ LocalPlayer* CharServerHandler::readPlayerData(MessageIn &msg, int &slot)
tempPlayer->mGp = msg.readInt32();
tempPlayer->mJobXp = msg.readInt32();
tempPlayer->mJobLevel = msg.readInt32();
- msg.skip(8); // unknown
+ tempPlayer->setSprite(Being::SHOE_SPRITE, msg.readInt16());
+ tempPlayer->setSprite(Being::GLOVES_SPRITE, msg.readInt16());
+ msg.readInt16(); // Cape
+ msg.readInt16(); // Misc1
msg.readInt32(); // option
msg.readInt32(); // karma
msg.readInt32(); // manner
@@ -208,7 +211,7 @@ LocalPlayer* CharServerHandler::readPlayerData(MessageIn &msg, int &slot)
tempPlayer->mLevel = msg.readInt16();
msg.readInt16(); // skill point
tempPlayer->setSprite(Being::BOTTOMCLOTHES_SPRITE, msg.readInt16()); // head bottom
- tempPlayer->setSprite(Being::SHIELD_SPRITE, msg.readInt16());
+ tempPlayer->setSprite(Being::SHIELD_SPRITE, msg.readInt16());
tempPlayer->setSprite(Being::HAT_SPRITE, msg.readInt16()); // head option top
tempPlayer->setSprite(Being::TOPCLOTHES_SPRITE, msg.readInt16()); // head option mid
int hairColor = msg.readInt16();