summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-05-31 17:31:46 +0300
committerAndrei Karas <akaras@inbox.ru>2012-05-31 17:31:46 +0300
commit02677a3b9b3abefb84e24023697466c892c6ded4 (patch)
tree4e563d4fb0af1a8fb8e99a5b97c58281a21d3182 /src/being.cpp
parentd4e5b8fb2b9b72e750845b874f3e60d3aea31543 (diff)
downloadmanaplus-02677a3b9b3abefb84e24023697466c892c6ded4.tar.gz
manaplus-02677a3b9b3abefb84e24023697466c892c6ded4.tar.bz2
manaplus-02677a3b9b3abefb84e24023697466c892c6ded4.tar.xz
manaplus-02677a3b9b3abefb84e24023697466c892c6ded4.zip
Add support for each hair style own palete.
Diffstat (limited to 'src/being.cpp')
-rw-r--r--src/being.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/being.cpp b/src/being.cpp
index c58cc4696..8414d93a6 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -2656,6 +2656,14 @@ Gender Being::intToGender(int sex)
}
}
+int Being::getSpriteID(int slot)
+{
+ if (slot < 0 || (unsigned)slot >= mSpriteIDs.size())
+ return -1;
+
+ return mSpriteIDs[slot];
+}
+
BeingEquipBackend::BeingEquipBackend(Being *being):
mBeing(being)
{