diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-08-29 02:04:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-08-29 02:04:52 +0300 |
commit | f2286853ea4322c980b05577bbc04ed2c211997b (patch) | |
tree | 602d9fe582eb2fb227dfa300dc8c22cf4700757f /src/resources/iteminfo.cpp | |
parent | 8002c6f3844e637e246d0bd96dd6253ac91324a3 (diff) | |
download | plus-f2286853ea4322c980b05577bbc04ed2c211997b.tar.gz plus-f2286853ea4322c980b05577bbc04ed2c211997b.tar.bz2 plus-f2286853ea4322c980b05577bbc04ed2c211997b.tar.xz plus-f2286853ea4322c980b05577bbc04ed2c211997b.zip |
Fix item sprites replacment issue if mixed directional and non directional
replacement rules.
Diffstat (limited to 'src/resources/iteminfo.cpp')
-rw-r--r-- | src/resources/iteminfo.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/resources/iteminfo.cpp b/src/resources/iteminfo.cpp index 56cfc01f6..fb4b8ed5e 100644 --- a/src/resources/iteminfo.cpp +++ b/src/resources/iteminfo.cpp @@ -144,25 +144,6 @@ const std::string &ItemInfo::getSound(EquipmentSoundEvent event) const std::map<int, int> *ItemInfo::addReplaceSprite(int sprite, int direction) { - if (direction == -1) - { - SpriteToItemMap *spMap = new SpriteToItemMap(); - for (int f = 0; f < 9; f ++) - { - if (!mSpriteToItemReplaceMap[f]) - { - mSpriteToItemReplaceMap[f] = spMap; - direction = f; - } - } - if (direction >= 0) - mSpriteToItemReplaceList.push_back(spMap); - else - delete spMap; - if (direction == -1) - direction = 1; - } - if (direction < 0 || direction >= 9) return 0; |