diff options
author | Jared Adams <jaxad0127@gmail.com> | 2010-01-24 14:43:14 -0700 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2010-01-24 14:43:14 -0700 |
commit | 3730a6028626cfcdab9bd98aecfeadf6c884b505 (patch) | |
tree | f78d37fae95f74625a745f5e551c40ae337976d9 /src/net/ea/charserverhandler.cpp | |
parent | 889108ea9a75a0591cac7efb49bac65629b6fb86 (diff) | |
download | mana-3730a6028626cfcdab9bd98aecfeadf6c884b505.tar.gz mana-3730a6028626cfcdab9bd98aecfeadf6c884b505.tar.bz2 mana-3730a6028626cfcdab9bd98aecfeadf6c884b505.tar.xz mana-3730a6028626cfcdab9bd98aecfeadf6c884b505.zip |
Remove some more _SUPPORT ifdefs
Diffstat (limited to 'src/net/ea/charserverhandler.cpp')
-rw-r--r-- | src/net/ea/charserverhandler.cpp | 37 |
1 files changed, 26 insertions, 11 deletions
diff --git a/src/net/ea/charserverhandler.cpp b/src/net/ea/charserverhandler.cpp index a8a5260f..4e3f3c37 100644 --- a/src/net/ea/charserverhandler.cpp +++ b/src/net/ea/charserverhandler.cpp @@ -191,10 +191,10 @@ LocalPlayer *CharServerHandler::readPlayerData(Net::MessageIn &msg, int &slot) int temp = msg.readInt32(); tempPlayer->setAttributeBase(JOB, temp, false); tempPlayer->setAttributeEffective(JOB, temp); - tempPlayer->setSprite(Player::SHOE_SPRITE, msg.readInt16()); - tempPlayer->setSprite(Player::GLOVES_SPRITE, msg.readInt16()); - tempPlayer->setSprite(Player::CAPE_SPRITE, msg.readInt16()); - tempPlayer->setSprite(Player::MISC1_SPRITE, msg.readInt16()); + tempPlayer->setSprite(SPRITE_SHOE, msg.readInt16()); + tempPlayer->setSprite(SPRITE_GLOVES, msg.readInt16()); + tempPlayer->setSprite(SPRITE_CAPE, msg.readInt16()); + tempPlayer->setSprite(SPRITE_MISC1, msg.readInt16()); msg.readInt32(); // option msg.readInt32(); // karma msg.readInt32(); // manner @@ -207,15 +207,15 @@ LocalPlayer *CharServerHandler::readPlayerData(Net::MessageIn &msg, int &slot) msg.readInt16(); // class int hairStyle = msg.readInt16(); Uint16 weapon = msg.readInt16(); - tempPlayer->setSprite(Player::WEAPON_SPRITE, weapon); + tempPlayer->setSprite(SPRITE_WEAPON, weapon, "", true); tempPlayer->setLevel(msg.readInt16()); msg.readInt16(); // skill point - tempPlayer->setSprite(Player::BOTTOMCLOTHES_SPRITE, msg.readInt16()); // head bottom - tempPlayer->setSprite(Player::SHIELD_SPRITE, msg.readInt16()); - tempPlayer->setSprite(Player::HAT_SPRITE, msg.readInt16()); // head option top - tempPlayer->setSprite(Player::TOPCLOTHES_SPRITE, msg.readInt16()); // head option mid - tempPlayer->setSprite(Player::HAIR_SPRITE, hairStyle * -1, ColorDB::get(msg.readInt16())); - tempPlayer->setSprite(Player::MISC2_SPRITE, msg.readInt16()); + tempPlayer->setSprite(SPRITE_BOTTOMCLOTHES, msg.readInt16()); // head bottom + tempPlayer->setSprite(SPRITE_SHIELD, msg.readInt16()); + tempPlayer->setSprite(SPRITE_HAT, msg.readInt16()); // head option top + tempPlayer->setSprite(SPRITE_TOPCLOTHES, msg.readInt16()); // head option mid + tempPlayer->setSprite(SPRITE_HAIR, hairStyle * -1, ColorDB::get(msg.readInt16())); + tempPlayer->setSprite(SPRITE_MISC2, msg.readInt16()); tempPlayer->setName(msg.readString(24)); for (int i = 0; i < 6; i++) tempPlayer->setAttributeBase(i + STR, msg.readInt8(), false); @@ -291,6 +291,21 @@ void CharServerHandler::switchCharacter() outMsg.writeInt8(1); } +unsigned int CharServerHandler::baseSprite() const +{ + return SPRITE_BASE; +} + +unsigned int CharServerHandler::hairSprite() const +{ + return SPRITE_HAIR; +} + +unsigned int CharServerHandler::maxSprite() const +{ + return SPRITE_VECTOREND; +} + void CharServerHandler::connect() { const Token &token = |