From 0a7725600eecd8491f3c814110bb434824e71252 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 12 Mar 2012 23:59:10 +0300 Subject: Use per race equipment sprites. Example: ... --- src/being.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/being.cpp') diff --git a/src/being.cpp b/src/being.cpp index cbe0a4a5e..db8940662 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -1751,7 +1751,7 @@ void Being::setSprite(unsigned int slot, int id, std::string color, else { const ItemInfo &info = ItemDB::get(id); - std::string filename = info.getSprite(mGender); + std::string filename = info.getSprite(mGender, mSubType); AnimatedSprite *equipmentSprite = nullptr; if (!filename.empty()) @@ -1807,7 +1807,7 @@ void Being::load() // we can go. int hairstyles = 1; - while (ItemDB::get(-hairstyles).getSprite(GENDER_MALE) != + while (ItemDB::get(-hairstyles).getSprite(GENDER_MALE, 0) != paths.getStringValue("spriteErrorFile")) { hairstyles ++; -- cgit v1.2.3-70-g09d2