diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2008-08-28 18:01:15 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2008-08-28 18:01:15 +0000 |
commit | b506fe0ff8a2039167aa7c349087af4dd03e1921 (patch) | |
tree | 36989bca6fa259815f92e1d3553b4cc97d8f8133 /src/net/charserverhandler.cpp | |
parent | b98b6256262da9aafd9e8e1f93744db321d4d1ad (diff) | |
download | mana-client-b506fe0ff8a2039167aa7c349087af4dd03e1921.tar.gz mana-client-b506fe0ff8a2039167aa7c349087af4dd03e1921.tar.bz2 mana-client-b506fe0ff8a2039167aa7c349087af4dd03e1921.tar.xz mana-client-b506fe0ff8a2039167aa7c349087af4dd03e1921.zip |
Applied patch put together by Jaxad0127 with changes from the Aethyra project.
Improves compatibility with the newer version of eAthena and works around an
initialization bug.
Diffstat (limited to 'src/net/charserverhandler.cpp')
-rw-r--r-- | src/net/charserverhandler.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/net/charserverhandler.cpp b/src/net/charserverhandler.cpp index c49c7640..baa841f4 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()); + tempPlayer->setSprite(Being::CAPE_SPRITE, msg.readInt16()); + tempPlayer->setSprite(Being::MISC1_SPRITE, msg.readInt16()); msg.readInt32(); // option msg.readInt32(); // karma msg.readInt32(); // manner @@ -213,7 +216,7 @@ LocalPlayer* CharServerHandler::readPlayerData(MessageIn &msg, int &slot) tempPlayer->setSprite(Being::TOPCLOTHES_SPRITE, msg.readInt16()); // head option mid int hairColor = msg.readInt16(); tempPlayer->setHairStyle(hairStyle, hairColor); - msg.readInt16(); // unknown + tempPlayer->setSprite(Being::MISC2_SPRITE, msg.readInt16()); tempPlayer->setName(msg.readString(24)); for (int i = 0; i < 6; i++) { tempPlayer->mAttr[i] = msg.readInt8(); |