summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-11-25 14:11:32 +0300
committerAndrei Karas <akaras@inbox.ru>2013-11-25 14:11:32 +0300
commit488428c6dba3d1e82b017bfb3b08ba85ced82be2 (patch)
treef590cc34fe4a33b384bfcfd531d7030b465d5d6b /src
parent5600eb502f0c7238ab7ab83e12ea92f69c9811c1 (diff)
downloadplus-488428c6dba3d1e82b017bfb3b08ba85ced82be2.tar.gz
plus-488428c6dba3d1e82b017bfb3b08ba85ced82be2.tar.bz2
plus-488428c6dba3d1e82b017bfb3b08ba85ced82be2.tar.xz
plus-488428c6dba3d1e82b017bfb3b08ba85ced82be2.zip
disable sprites update optimisation because it may broke replace/remove logic
Diffstat (limited to 'src')
-rw-r--r--src/being/being.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp
index 65bcc5782..f3976a20e 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -1921,9 +1921,9 @@ void Being::setSprite(const unsigned int slot, const int id,
if (slot >= mSpriteColorsIds.size())
mSpriteColorsIds.resize(slot + 1, 1);
- // here probably need more complex condition
- if (slot && mSpriteIDs[slot] == id)
- return;
+ // disabled for now, because it may broke replace/reorder sprites logic
+// if (slot && mSpriteIDs[slot] == id)
+// return;
// id = 0 means unequip
if (id == 0)