summaryrefslogtreecommitdiff
path: root/src/item.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-07-25 03:42:09 +0300
committerAndrei Karas <akaras@inbox.ru>2011-07-25 03:42:09 +0300
commita4252ba2050b16a53247335cdddd7aa13a532239 (patch)
tree19a41cf0b1c546d5b1cc217194a1fe0a477d545d /src/item.cpp
parent4afb49eb81f590c2bce56ed28f237a9bf0e2a093 (diff)
downloadmv-a4252ba2050b16a53247335cdddd7aa13a532239.tar.gz
mv-a4252ba2050b16a53247335cdddd7aa13a532239.tar.bz2
mv-a4252ba2050b16a53247335cdddd7aa13a532239.tar.xz
mv-a4252ba2050b16a53247335cdddd7aa13a532239.zip
Add removing palyers sprite logic depend on players direction.
Diffstat (limited to 'src/item.cpp')
-rw-r--r--src/item.cpp4
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;