Remove trenches from map generator (cyisfor) (glitches: read below)
authordarkrose <lisa@ltmnet.com>
Fri, 20 Jul 2012 17:07:01 +0000 (03:07 +1000)
committerPerttu Ahola <celeron55@gmail.com>
Fri, 20 Jul 2012 23:32:04 +0000 (02:32 +0300)
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.

src/mapgen.cpp

index a487e8f6dd04bd4d5da39ca82c3b2c75a755524a..af53d0091db6abac53e5eef4dd17404385502418 100644 (file)
@@ -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;