summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-03-12 23:59:10 +0300
committerAndrei Karas <akaras@inbox.ru>2012-03-13 00:04:53 +0300
commit0a7725600eecd8491f3c814110bb434824e71252 (patch)
tree05df7742a9697f394a9478082fdeb15a46d4bbb4 /src/being.cpp
parent9e53440cb2dbcfd4311ce2566eb98839383738c7 (diff)
downloadplus-0a7725600eecd8491f3c814110bb434824e71252.tar.gz
plus-0a7725600eecd8491f3c814110bb434824e71252.tar.bz2
plus-0a7725600eecd8491f3c814110bb434824e71252.tar.xz
plus-0a7725600eecd8491f3c814110bb434824e71252.zip
Use per race equipment sprites.
Example: <sprite gender="male" race="4">...</sprite>
Diffstat (limited to 'src/being.cpp')
-rw-r--r--src/being.cpp4
1 files changed, 2 insertions, 2 deletions
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 ++;