summaryrefslogtreecommitdiff
path: root/src/content_inventory.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-11-16 01:34:09 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-11-29 19:13:46 +0200
commit37a5f8a30bc2e267909d699faef4910a3a261555 (patch)
treef210efc6d415f2ffb16ed2747c4d7d77196244e8 /src/content_inventory.cpp
parentf107967fdcfd66add9638b2932723e55c4f4ae2d (diff)
downloadminetest-37a5f8a30bc2e267909d699faef4910a3a261555.tar.gz
minetest-37a5f8a30bc2e267909d699faef4910a3a261555.tar.bz2
minetest-37a5f8a30bc2e267909d699faef4910a3a261555.zip
Move cook result properly to ContentFeatures
Diffstat (limited to 'src/content_inventory.cpp')
-rw-r--r--src/content_inventory.cpp25
1 files changed, 2 insertions, 23 deletions
diff --git a/src/content_inventory.cpp b/src/content_inventory.cpp
index 349d47d5b..2a05b76f0 100644
--- a/src/content_inventory.cpp
+++ b/src/content_inventory.cpp
@@ -22,29 +22,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "content_mapnode.h"
//#include "serverobject.h"
#include "content_sao.h"
-
-bool item_material_is_cookable(content_t content, IGameDef *gamedef)
-{
- if(content == CONTENT_TREE)
- return true;
- else if(content == CONTENT_COBBLE)
- return true;
- else if(content == CONTENT_SAND)
- return true;
- return false;
-}
-
-InventoryItem* item_material_create_cook_result(content_t content,
- IGameDef *gamedef)
-{
- if(content == CONTENT_TREE)
- return new CraftItem(gamedef, "lump_of_coal", 1);
- else if(content == CONTENT_COBBLE)
- return new MaterialItem(gamedef, CONTENT_STONE, 1);
- else if(content == CONTENT_SAND)
- return new MaterialItem(gamedef, CONTENT_GLASS, 1);
- return NULL;
-}
+//#include "gamedef.h"
+//#include "nodedef.h"
std::string item_craft_get_image_name(const std::string &subname,
IGameDef *gamedef)