diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-07-25 03:42:09 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-07-25 03:42:09 +0300 |
commit | a4252ba2050b16a53247335cdddd7aa13a532239 (patch) | |
tree | 19a41cf0b1c546d5b1cc217194a1fe0a477d545d /src/item.cpp | |
parent | 4afb49eb81f590c2bce56ed28f237a9bf0e2a093 (diff) | |
download | manaverse-a4252ba2050b16a53247335cdddd7aa13a532239.tar.gz manaverse-a4252ba2050b16a53247335cdddd7aa13a532239.tar.bz2 manaverse-a4252ba2050b16a53247335cdddd7aa13a532239.tar.xz manaverse-a4252ba2050b16a53247335cdddd7aa13a532239.zip |
Add removing palyers sprite logic depend on players direction.
Diffstat (limited to 'src/item.cpp')
-rw-r--r-- | src/item.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/item.cpp b/src/item.cpp index f74d0e837..d76eaf401 100644 --- a/src/item.cpp +++ b/src/item.cpp @@ -70,7 +70,7 @@ void Item::setId(int id, unsigned char color) mDrawImage->decRef(); ResourceManager *resman = ResourceManager::getInstance(); - ItemInfo info = getInfo(); + const ItemInfo &info = getInfo(); mTags = info.getTags(); // logger->log("tag0=" + toString(mTags[1])); @@ -107,7 +107,7 @@ bool Item::isHaveTag(int tagId) Image *Item::getImage(int id, unsigned char color) { ResourceManager *resman = ResourceManager::getInstance(); - ItemInfo info = ItemDB::get(id); + const ItemInfo &info = ItemDB::get(id); SpriteDisplay display = info.getDisplay(); std::string imagePath = "graphics/items/" + display.image; Image *image; |