diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-11-16 14:08:31 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-11-29 19:13:47 +0200 |
commit | df8346ef4d70ba7c717c4c7b9c783df876378ca8 (patch) | |
tree | 9a7e57fcc17942bde7505ff37838d6ab253cedf9 /src/mapblock.cpp | |
parent | c0f6395cf09f658eb95365c60f67b8a89104cb23 (diff) | |
download | minetest-df8346ef4d70ba7c717c4c7b9c783df876378ca8.tar.gz minetest-df8346ef4d70ba7c717c4c7b9c783df876378ca8.tar.bz2 minetest-df8346ef4d70ba7c717c4c7b9c783df876378ca8.zip |
Do not expose CONTENT_* stuff in content_mapnode.h and use a name converter wrapper in old code
Diffstat (limited to 'src/mapblock.cpp')
-rw-r--r-- | src/mapblock.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/mapblock.cpp b/src/mapblock.cpp index 06ce9282f..76b8a5e79 100644 --- a/src/mapblock.cpp +++ b/src/mapblock.cpp @@ -275,7 +275,6 @@ bool MapBlock::propagateSunlight(core::map<v3s16, bool> & light_sources, else { MapNode n = getNode(v3s16(x, MAP_BLOCKSIZE-1, z)); - //if(n.getContent() == CONTENT_WATER || n.getContent() == CONTENT_WATERSOURCE) if(m_gamedef->ndef()->get(n).sunlight_propagates == false) { no_sunlight = true; @@ -331,26 +330,6 @@ bool MapBlock::propagateSunlight(core::map<v3s16, bool> & light_sources, } else if(nodemgr->get(n).light_propagates == false) { - /*// DEPRECATED TODO: REMOVE - if(grow_grass) - { - bool upper_is_air = false; - try - { - if(getNodeParent(pos+v3s16(0,1,0)).getContent() == CONTENT_AIR) - upper_is_air = true; - } - catch(InvalidPositionException &e) - { - } - // Turn mud into grass - if(upper_is_air && n.getContent() == CONTENT_MUD - && current_light == LIGHT_SUN) - { - n.d = CONTENT_GRASS; - } - }*/ - // A solid object is on the way. stopped_to_solid_object = true; |