From 6129e31b96f31521a79f5dfd7968f0cf0decb200 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Tue, 14 Dec 2010 01:56:24 +0200 Subject: better graphics, zlib to work on vc++ --- src/inventory.h | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) (limited to 'src/inventory.h') diff --git a/src/inventory.h b/src/inventory.h index 1fab9d027..50f3247c3 100644 --- a/src/inventory.h +++ b/src/inventory.h @@ -59,9 +59,9 @@ private: class MaterialItem : public InventoryItem { public: - MaterialItem(u8 material, u16 count) + MaterialItem(u8 content, u16 count) { - m_material = material; + m_content = content; m_count = count; } /* @@ -76,18 +76,26 @@ public: //os.imbue(std::locale("C")); os<= USEFUL_CONTENT_COUNT) + return NULL; + + return g_texturecache.get(g_content_inventory_textures[m_content]); } std::string getText() { @@ -100,7 +108,7 @@ public: */ u8 getMaterial() { - return m_material; + return m_content; } u16 getCount() { @@ -123,7 +131,7 @@ public: m_count -= count; } private: - u8 m_material; + u8 m_content; u16 m_count; }; -- cgit v1.2.3