aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordarkrose <lisa@ltmnet.com>2012-07-21 03:07:01 +1000
committerPerttu Ahola <celeron55@gmail.com>2012-07-21 02:32:04 +0300
commit1b19020bf471cd31ad2dd762450e88d90989f62a (patch)
treedae654e177689f05086edae9875b4f711c3a31f0 /src
parent61e58ee9b75683834819b84a85ba1256e2033c3f (diff)
downloadminetest-1b19020bf471cd31ad2dd762450e88d90989f62a.tar.gz
minetest-1b19020bf471cd31ad2dd762450e88d90989f62a.tar.bz2
minetest-1b19020bf471cd31ad2dd762450e88d90989f62a.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/mapgen.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/mapgen.cpp b/src/mapgen.cpp
index a487e8f6d..af53d0091 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;