diff options
author | Nils Dagsson Moskopp <nils@dieweltistgarnichtso.net> | 2011-06-07 19:24:30 +0200 |
---|---|---|
committer | Nils Dagsson Moskopp <nils@dieweltistgarnichtso.net> | 2011-06-07 19:24:30 +0200 |
commit | 3be6891938fec9927854a0f0abe821a6271bba23 (patch) | |
tree | 1dca7d02a21053d8d0a5d5fdbd486414f823bd5c /src/mapnode.cpp | |
parent | a62228ec1e1caf863ae12e8ff6acfca48a9219f0 (diff) | |
download | minetest-3be6891938fec9927854a0f0abe821a6271bba23.tar.gz minetest-3be6891938fec9927854a0f0abe821a6271bba23.tar.bz2 minetest-3be6891938fec9927854a0f0abe821a6271bba23.zip |
+ rail
Diffstat (limited to 'src/mapnode.cpp')
-rw-r--r-- | src/mapnode.cpp | 11 |
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]; |