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/manaserv/charhandler.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/manaserv/charhandler.cpp')
-rw-r--r-- | src/net/manaserv/charhandler.cpp | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/src/net/manaserv/charhandler.cpp b/src/net/manaserv/charhandler.cpp index 622fceaa..916e05b8 100644 --- a/src/net/manaserv/charhandler.cpp +++ b/src/net/manaserv/charhandler.cpp @@ -157,7 +157,7 @@ void CharHandler::handleMessage(Net::MessageIn &msg) LocalPlayer *tempPlayer = new LocalPlayer(); tempPlayer->setName(info.name); tempPlayer->setGender(info.gender); - tempPlayer->setSprite(Player::HAIR_SPRITE, info.hs * -1, + tempPlayer->setSprite(SPRITE_HAIR, info.hs * -1, ColorDB::get(info.hc)); tempPlayer->setLevel(info.level); tempPlayer->setCharacterPoints(info.charPoints); @@ -332,7 +332,7 @@ void CharHandler::getCharacters() tempPlayer = new LocalPlayer(); tempPlayer->setName(info.name); tempPlayer->setGender(info.gender); - tempPlayer->setSprite(Player::HAIR_SPRITE, info.hs * -1, + tempPlayer->setSprite(SPRITE_HAIR, info.hs * -1, ColorDB::get(info.hc)); tempPlayer->setLevel(info.level); tempPlayer->setCharacterPoints(info.charPoints); @@ -400,4 +400,19 @@ void CharHandler::switchCharacter() gameHandler->quit(true); } +unsigned int CharHandler::baseSprite() const +{ + return SPRITE_BASE; +} + +unsigned int CharHandler::hairSprite() const +{ + return SPRITE_HAIR; +} + +unsigned int CharHandler::maxSprite() const +{ + return SPRITE_VECTOREND; +} + } // namespace ManaServ |