diff options
author | Philipp Sehmisch <tmw@crushnet.org> | 2007-12-10 02:22:59 +0000 |
---|---|---|
committer | Philipp Sehmisch <tmw@crushnet.org> | 2007-12-10 02:22:59 +0000 |
commit | e961be5bfd29ad3f44f948828981cb3ab07f25a7 (patch) | |
tree | 5464d14635191407eb24c7ad76b1b218b33016d2 /src/net/charserverhandler.cpp | |
parent | 43b986ceffdb436d8850a876bd485c9a3eea8cdd (diff) | |
download | mana-e961be5bfd29ad3f44f948828981cb3ab07f25a7.tar.gz mana-e961be5bfd29ad3f44f948828981cb3ab07f25a7.tar.bz2 mana-e961be5bfd29ad3f44f948828981cb3ab07f25a7.tar.xz mana-e961be5bfd29ad3f44f948828981cb3ab07f25a7.zip |
Simplified player subsprite handling by treating equipment, hairstyle and base sprites alike. Implementing female hairstyles is now a purely content-sided task.
Diffstat (limited to 'src/net/charserverhandler.cpp')
-rw-r--r-- | src/net/charserverhandler.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/net/charserverhandler.cpp b/src/net/charserverhandler.cpp index 063be212..5c275b94 100644 --- a/src/net/charserverhandler.cpp +++ b/src/net/charserverhandler.cpp @@ -204,13 +204,13 @@ LocalPlayer* CharServerHandler::readPlayerData(MessageIn &msg, int &slot) msg.readInt16(); // class int hairStyle = msg.readInt16(); Uint16 weapon = msg.readInt16(); - tempPlayer->setVisibleEquipment(Being::WEAPON_SPRITE, weapon); + tempPlayer->setSprite(Being::WEAPON_SPRITE, weapon); tempPlayer->mLevel = msg.readInt16(); msg.readInt16(); // skill point - tempPlayer->setVisibleEquipment(Being::BOTTOMCLOTHES_SPRITE, msg.readInt16()); // head bottom + tempPlayer->setSprite(Being::BOTTOMCLOTHES_SPRITE, msg.readInt16()); // head bottom msg.readInt16(); // shield - tempPlayer->setVisibleEquipment(Being::HAT_SPRITE, msg.readInt16()); // head option top - tempPlayer->setVisibleEquipment(Being::TOPCLOTHES_SPRITE, msg.readInt16()); // head option mid + tempPlayer->setSprite(Being::HAT_SPRITE, msg.readInt16()); // head option top + tempPlayer->setSprite(Being::TOPCLOTHES_SPRITE, msg.readInt16()); // head option mid int hairColor = msg.readInt16(); tempPlayer->setHairStyle(hairStyle, hairColor); msg.readInt16(); // unknown |