diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-05-31 17:31:46 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-05-31 17:31:46 +0300 |
commit | 02677a3b9b3abefb84e24023697466c892c6ded4 (patch) | |
tree | 4e563d4fb0af1a8fb8e99a5b97c58281a21d3182 /src/being.cpp | |
parent | d4e5b8fb2b9b72e750845b874f3e60d3aea31543 (diff) | |
download | plus-02677a3b9b3abefb84e24023697466c892c6ded4.tar.gz plus-02677a3b9b3abefb84e24023697466c892c6ded4.tar.bz2 plus-02677a3b9b3abefb84e24023697466c892c6ded4.tar.xz plus-02677a3b9b3abefb84e24023697466c892c6ded4.zip |
Add support for each hair style own palete.
Diffstat (limited to 'src/being.cpp')
-rw-r--r-- | src/being.cpp | 8 |
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) { |