From a4252ba2050b16a53247335cdddd7aa13a532239 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 25 Jul 2011 03:42:09 +0300 Subject: Add removing palyers sprite logic depend on players direction. --- src/item.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/item.cpp') 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; -- cgit v1.2.3-60-g2f50