From 02677a3b9b3abefb84e24023697466c892c6ded4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 31 May 2012 17:31:46 +0300 Subject: Add support for each hair style own palete. --- src/being.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/being.cpp') 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) { -- cgit v1.2.3-60-g2f50