From: darkrose Date: Fri, 20 Jul 2012 17:07:01 +0000 (+1000) Subject: Remove trenches from map generator (cyisfor) (glitches: read below) X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=1b19020bf471cd31ad2dd762450e88d90989f62a;p=zefram%2Fminetest%2Fminetest_engine.git Remove trenches from map generator (cyisfor) (glitches: read below) This causes glitches in very high cliffs by not making mud "flow" down from them. Those are quite rare currently because of the lame height differences generated. --- diff --git a/src/mapgen.cpp b/src/mapgen.cpp index a487e8f6..af53d009 100644 --- a/src/mapgen.cpp +++ b/src/mapgen.cpp @@ -2059,13 +2059,14 @@ void make_block(BlockMakeData *data) bool old_is_water = (n->getContent() == c_water_source); // Move mud to new place - if(!dropped_to_unknown) + if(!dropped_to_unknown) { *n2 = *n; - // Set old place to be air (or water) - if(old_is_water) - *n = MapNode(c_water_source); - else - *n = MapNode(CONTENT_AIR); + // Set old place to be air (or water) + if(old_is_water) + *n = MapNode(c_water_source); + else + *n = MapNode(CONTENT_AIR); + } // Done break;