summaryrefslogtreecommitdiff
path: root/src/resources/itemdb.cpp
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2008-02-22 19:58:29 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2008-02-22 19:58:29 +0000
commitd3adc61aa4b4924f82d8cbc23bea26da7257da97 (patch)
treea332ee5ff920213ebfb558e646ba278885d1bdc3 /src/resources/itemdb.cpp
parent3d97d69ca9b0521aa0f49db0b739d50afc00318e (diff)
downloadmana-client-d3adc61aa4b4924f82d8cbc23bea26da7257da97.tar.gz
mana-client-d3adc61aa4b4924f82d8cbc23bea26da7257da97.tar.bz2
mana-client-d3adc61aa4b4924f82d8cbc23bea26da7257da97.tar.xz
mana-client-d3adc61aa4b4924f82d8cbc23bea26da7257da97.zip
Handling gender with an enum everywhere.
Diffstat (limited to 'src/resources/itemdb.cpp')
-rw-r--r--src/resources/itemdb.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/resources/itemdb.cpp b/src/resources/itemdb.cpp
index 5f6846ba..d507987a 100644
--- a/src/resources/itemdb.cpp
+++ b/src/resources/itemdb.cpp
@@ -100,8 +100,8 @@ void ItemDB::load()
mUnknown = new ItemInfo();
mUnknown->setName("Unknown item");
mUnknown->setImageName("");
- mUnknown->setSprite("error.xml", 0);
- mUnknown->setSprite("error.xml", 1);
+ mUnknown->setSprite("error.xml", GENDER_MALE);
+ mUnknown->setSprite("error.xml", GENDER_FEMALE);
ResourceManager *resman = ResourceManager::getInstance();
int size;
@@ -241,12 +241,12 @@ void loadSpriteRef(ItemInfo *itemInfo, xmlNodePtr node)
if (gender == "male" || gender == "unisex")
{
- itemInfo->setSprite(filename, 0);
+ itemInfo->setSprite(filename, GENDER_MALE);
}
if (gender == "female" || gender == "unisex")
{
- itemInfo->setSprite(filename, 1);
+ itemInfo->setSprite(filename, GENDER_FEMALE);
}
}