From 01c2b003e1efb839ad246eb939af7fa8336b9ad5 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sun, 3 Apr 2011 16:21:06 +0300 Subject: commit before some more radical changes --- src/mapnode.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'src/mapnode.cpp') diff --git a/src/mapnode.cpp b/src/mapnode.cpp index 2ca4ade7a..a8c951ab3 100644 --- a/src/mapnode.cpp +++ b/src/mapnode.cpp @@ -201,6 +201,7 @@ void init_mapnode() } f->dug_item = std::string("MaterialItem ")+itos(i)+" 1"; + // Deprecated i = CONTENT_COALSTONE; f = &g_content_features[i]; //f->translate_to = new MapNode(CONTENT_STONE, MINERAL_COAL); @@ -287,6 +288,25 @@ void init_mapnode() f->wall_mounted = true; f->dug_item = std::string("MaterialItem ")+itos(i)+" 1"; + i = CONTENT_FURNACE; + f = &g_content_features[i]; + f->setAllTextures("furnace_side.png"); + f->setTexture(2, "furnace_front.png"); + f->setInventoryTexture("furnace_front.png"); + f->param_type = CPT_NONE; + f->dug_item = std::string("MaterialItem ")+itos(i)+" 1"; + + i = CONTENT_SIGN_WALL; + f = &g_content_features[i]; + f->setInventoryTexture("sign_wall.png"); + f->param_type = CPT_LIGHT; + f->light_propagates = true; + f->sunlight_propagates = true; + f->solidness = 0; // drawn separately, makes no faces + f->walkable = false; + f->wall_mounted = true; + f->dug_item = std::string("MaterialItem ")+itos(i)+" 1"; + } TileSpec MapNode::getTile(v3s16 dir) -- cgit v1.2.3