1
0
mirror of https://github.com/moparisthebest/minetest synced 2024-12-22 23:58:48 -05:00

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.
This commit is contained in:
darkrose 2012-07-21 03:07:01 +10:00 committed by Perttu Ahola
parent 61e58ee9b7
commit 1b19020bf4

View File

@ -2059,13 +2059,14 @@ void make_block(BlockMakeData *data)
bool old_is_water = (n->getContent() == c_water_source); bool old_is_water = (n->getContent() == c_water_source);
// Move mud to new place // Move mud to new place
if(!dropped_to_unknown) if(!dropped_to_unknown) {
*n2 = *n; *n2 = *n;
// Set old place to be air (or water) // Set old place to be air (or water)
if(old_is_water) if(old_is_water)
*n = MapNode(c_water_source); *n = MapNode(c_water_source);
else else
*n = MapNode(CONTENT_AIR); *n = MapNode(CONTENT_AIR);
}
// Done // Done
break; break;