summaryrefslogtreecommitdiff
path: root/src/mapnode.cpp
diff options
context:
space:
mode:
authorNils Dagsson Moskopp <nils@dieweltistgarnichtso.net>2011-06-07 19:24:30 +0200
committerNils Dagsson Moskopp <nils@dieweltistgarnichtso.net>2011-06-07 19:24:30 +0200
commit51d308c666dfd023169b7d5e200fbefb3d315d3b (patch)
tree804b9d4e7a93a045aed6cc8f320c3c714794f1cf /src/mapnode.cpp
parentb3c439fb16bb5a5566702f8d9d1cfcd2f9e20e18 (diff)
downloadminetest-51d308c666dfd023169b7d5e200fbefb3d315d3b.tar.gz
minetest-51d308c666dfd023169b7d5e200fbefb3d315d3b.tar.bz2
minetest-51d308c666dfd023169b7d5e200fbefb3d315d3b.zip
+ rail
Diffstat (limited to 'src/mapnode.cpp')
-rw-r--r--src/mapnode.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mapnode.cpp b/src/mapnode.cpp
index 7e97a8d04..1c0a2740b 100644
--- a/src/mapnode.cpp
+++ b/src/mapnode.cpp
@@ -281,6 +281,17 @@ void init_mapnode()
f->solidness = 0; // drawn separately, makes no faces
f->air_equivalent = true; // grass grows underneath
+ i = CONTENT_RAIL;
+ f = &g_content_features[i];
+ f->setInventoryTexture("rail.png");
+ f->light_propagates = true;
+ f->param_type = CPT_LIGHT;
+ f->is_ground_content = true;
+ f->dug_item = std::string("MaterialItem ")+itos(i)+" 1";
+ f->solidness = 0; // drawn separately, makes no faces
+ f->air_equivalent = true; // grass grows underneath
+ f->walkable = false;
+
// Deprecated
i = CONTENT_COALSTONE;
f = &g_content_features[i];