summaryrefslogtreecommitdiff
path: root/src/net/manaserv/charhandler.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2010-01-24 14:43:14 -0700
committerJared Adams <jaxad0127@gmail.com>2010-01-24 14:43:14 -0700
commit3730a6028626cfcdab9bd98aecfeadf6c884b505 (patch)
treef78d37fae95f74625a745f5e551c40ae337976d9 /src/net/manaserv/charhandler.cpp
parent889108ea9a75a0591cac7efb49bac65629b6fb86 (diff)
downloadmana-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.cpp19
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