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/inventory.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/inventory.cpp') diff --git a/src/inventory.cpp b/src/inventory.cpp index 47a32bce1..b247b2f63 100644 --- a/src/inventory.cpp +++ b/src/inventory.cpp @@ -204,7 +204,8 @@ void Inventory::distributeSlotsChangedEvent() (*i)->slotsChanged(this); } -Item *Inventory::findItemBySprite(std::string spritePath, Gender gender) +Item *Inventory::findItemBySprite(std::string spritePath, + Gender gender, int race) { spritePath = removeSpriteIndex(spritePath); // logger->log1("Inventory::FindItemBySprite sprite: " + spritePath); @@ -217,7 +218,7 @@ Item *Inventory::findItemBySprite(std::string spritePath, Gender gender) { if (mItems[i]) { - std::string path = mItems[i]->getInfo().getSprite(gender); + std::string path = mItems[i]->getInfo().getSprite(gender, race); if (!path.empty()) { path = removeSpriteIndex(path); -- cgit v1.2.3-70-g09d2