From 2b62aea7eaa69010c00476ccd7e03729ccac6226 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 30 Jun 2018 22:43:38 +0300 Subject: Rename "other" gender into "hidden" gender. --- src/resources/db/itemdb.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/resources') diff --git a/src/resources/db/itemdb.cpp b/src/resources/db/itemdb.cpp index c91d74ffd..d6889bd83 100644 --- a/src/resources/db/itemdb.cpp +++ b/src/resources/db/itemdb.cpp @@ -173,7 +173,7 @@ void ItemDB::load() std::string errFile = paths.getStringValue("spriteErrorFile"); mUnknown->setSprite(errFile, Gender::MALE, 0); mUnknown->setSprite(errFile, Gender::FEMALE, 0); - mUnknown->setSprite(errFile, Gender::OTHER, 0); + mUnknown->setSprite(errFile, Gender::HIDDEN, 0); mUnknown->addTag(mTags["All"]); loadXmlFile(paths.getStringValue("itemsFile"), tagNum, @@ -975,8 +975,9 @@ static void loadSpriteRef(ItemInfo *const itemInfo, XmlNodeConstPtr node) itemInfo->setSprite(filename, Gender::MALE, race); if (gender == "female" || gender == "unisex") itemInfo->setSprite(filename, Gender::FEMALE, race); - if (gender == "other" || gender == "unisex") - itemInfo->setSprite(filename, Gender::OTHER, race); + // "other" is legacy from 20180630 + if (gender == "hidden" || gender == "other" || gender == "unisex") + itemInfo->setSprite(filename, Gender::HIDDEN, race); } static void loadSoundRef(ItemInfo *const itemInfo, XmlNodeConstPtr node) -- cgit v1.2.3-70-g09d2