From 6bedbd1724e575a152250eeda7988423d01680ba Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 30 Jul 2014 23:12:06 +0300 Subject: Add chat command for spawn debug local player copy. New chat command: /debugSpawn --- src/being/being.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/being/being.cpp') diff --git a/src/being/being.cpp b/src/being/being.cpp index f69a084c0..471adedf9 100644 --- a/src/being/being.cpp +++ b/src/being/being.cpp @@ -3062,6 +3062,14 @@ int Being::getSpriteID(const int slot) const return mSpriteIDs[slot]; } +unsigned char Being::getSpriteColor(const int slot) const +{ + if (slot < 0 || static_cast(slot) >= mSpriteColorsIds.size()) + return 1; + + return mSpriteColorsIds[slot]; +} + void Being::addAfkEffect() { addSpecialEffect(mAwayEffect); -- cgit v1.2.3-70-g09d2