diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-07-30 23:57:49 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-07-30 23:57:49 +0300 |
commit | e6c5a9106004297abd0c593a752303aa071d6659 (patch) | |
tree | dd1675be02fb3f517f84298c88dcf38e41de3ca6 /src/resources | |
parent | cfede1d7d50541cf64b191844d537cb55880ce09 (diff) | |
download | plus-e6c5a9106004297abd0c593a752303aa071d6659.tar.gz plus-e6c5a9106004297abd0c593a752303aa071d6659.tar.bz2 plus-e6c5a9106004297abd0c593a752303aa071d6659.tar.xz plus-e6c5a9106004297abd0c593a752303aa071d6659.zip |
Fix sprite replacment logic.
Known issue: Impossible mix replace logic with direction and without direction.
Diffstat (limited to 'src/resources')
-rw-r--r-- | src/resources/iteminfo.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/resources/iteminfo.cpp b/src/resources/iteminfo.cpp index d496ffa75..40bc35f1c 100644 --- a/src/resources/iteminfo.cpp +++ b/src/resources/iteminfo.cpp @@ -145,6 +145,8 @@ std::map<int, int> *ItemInfo::addReplaceSprite(int sprite, int direction) mSpriteToItemReplaceList.push_back(spMap); else delete spMap; + if (direction == -1) + direction = 1; } if (direction < 0 || direction >= 9) |