From 123e8fdf53ffb40c7464d0559a49e048fed79d7d Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Mon, 20 Dec 2010 22:03:49 +0200 Subject: framework for modifying textures --- src/inventory.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/inventory.cpp') diff --git a/src/inventory.cpp b/src/inventory.cpp index ba8cf4580..079be8793 100644 --- a/src/inventory.cpp +++ b/src/inventory.cpp @@ -80,10 +80,12 @@ InventoryItem* InventoryItem::deSerialize(std::istream &is) video::ITexture * MapBlockObjectItem::getImage() { if(m_inventorystring.substr(0,3) == "Rat") - return g_device->getVideoDriver()->getTexture("../data/rat.png"); + //return g_device->getVideoDriver()->getTexture("../data/rat.png"); + return g_irrlicht->getTexture("../data/rat.png"); if(m_inventorystring.substr(0,4) == "Sign") - return g_device->getVideoDriver()->getTexture("../data/sign.png"); + //return g_device->getVideoDriver()->getTexture("../data/sign.png"); + return g_irrlicht->getTexture("../data/sign.png"); return NULL; } -- cgit v1.2.3