diff options
author | kwolekr <kwolekr@minetest.net> | 2013-11-29 20:54:04 -0500 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2013-11-29 20:54:04 -0500 |
commit | 747bc40840ff13bcf9c7a60b790a6de24f94f946 (patch) | |
tree | deb362d95bd040357a76ca71c493c1a44acb3444 /src/nodedef.cpp | |
parent | d19a69cd0d22dfbe802286baf8b33ebb8c6f4fa2 (diff) | |
download | minetest-747bc40840ff13bcf9c7a60b790a6de24f94f946.tar.gz minetest-747bc40840ff13bcf9c7a60b790a6de24f94f946.tar.bz2 minetest-747bc40840ff13bcf9c7a60b790a6de24f94f946.zip |
Cavegen: Respect is_ground_content MapNode setting; fix some code formatting issues
Diffstat (limited to 'src/nodedef.cpp')
-rw-r--r-- | src/nodedef.cpp | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/src/nodedef.cpp b/src/nodedef.cpp index 41956ca2e..d13d0653d 100644 --- a/src/nodedef.cpp +++ b/src/nodedef.cpp @@ -396,15 +396,16 @@ public: // Set CONTENT_AIR { ContentFeatures f; - f.name = "air"; - f.drawtype = NDT_AIRLIKE; - f.param_type = CPT_LIGHT; - f.light_propagates = true; + f.name = "air"; + f.drawtype = NDT_AIRLIKE; + f.param_type = CPT_LIGHT; + f.light_propagates = true; f.sunlight_propagates = true; - f.walkable = false; - f.pointable = false; - f.diggable = false; - f.buildable_to = true; + f.walkable = false; + f.pointable = false; + f.diggable = false; + f.buildable_to = true; + f.is_ground_content = true; // Insert directly into containers content_t c = CONTENT_AIR; m_content_features[c] = f; @@ -414,16 +415,16 @@ public: // Set CONTENT_IGNORE { ContentFeatures f; - f.name = "ignore"; - f.drawtype = NDT_AIRLIKE; - f.param_type = CPT_NONE; - f.light_propagates = false; + f.name = "ignore"; + f.drawtype = NDT_AIRLIKE; + f.param_type = CPT_NONE; + f.light_propagates = false; f.sunlight_propagates = false; - f.walkable = false; - f.pointable = false; - f.diggable = false; - // A way to remove accidental CONTENT_IGNOREs - f.buildable_to = true; + f.walkable = false; + f.pointable = false; + f.diggable = false; + f.buildable_to = true; // A way to remove accidental CONTENT_IGNOREs + f.is_ground_content = true; // Insert directly into containers content_t c = CONTENT_IGNORE; m_content_features[c] = f; |