summaryrefslogtreecommitdiff
path: root/src/inventory.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-12-04 02:12:45 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-12-04 02:12:45 +0200
commit6145a135bd71425c69d31e6c65112238e08349a5 (patch)
treedc1b839ebd4b35cb84a14b95d339843c11e75bf1 /src/inventory.h
parent97c3bc408be0636b5821b7792957d18272e8f7bb (diff)
downloadminetest-6145a135bd71425c69d31e6c65112238e08349a5.tar.gz
minetest-6145a135bd71425c69d31e6c65112238e08349a5.tar.bz2
minetest-6145a135bd71425c69d31e6c65112238e08349a5.zip
Make ToolItem and MaterialItem to convert names by aliases at creation time too (necessary for eg. crafting)
Diffstat (limited to 'src/inventory.h')
-rw-r--r--src/inventory.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/inventory.h b/src/inventory.h
index 57af37650..c16b9a310 100644
--- a/src/inventory.h
+++ b/src/inventory.h
@@ -331,12 +331,7 @@ private:
class ToolItem : public InventoryItem
{
public:
- ToolItem(IGameDef *gamedef, std::string toolname, u16 wear):
- InventoryItem(gamedef, 1)
- {
- m_toolname = toolname;
- m_wear = wear;
- }
+ ToolItem(IGameDef *gamedef, std::string toolname, u16 wear);
/*
Implementation interface
*/