(svn r22808) -Change [FS#4740]: make it less likely that a one tile wide lake is created

This commit is contained in:
rubidium
2011-08-21 19:36:30 +00:00
parent cac4c2df20
commit 7f039ee8da

View File

@@ -1131,7 +1131,7 @@ static bool FlowRiver(bool *marks, TileIndex spring, TileIndex begin)
if (found) { if (found) {
/* Flow further down hill. */ /* Flow further down hill. */
found = FlowRiver(marks, spring, end); found = FlowRiver(marks, spring, end);
} else if (count > 10) { } else if (count > 32) {
/* Maybe we can make a lake. Find the Nth of the considered tiles. */ /* Maybe we can make a lake. Find the Nth of the considered tiles. */
TileIndex lakeCenter = 0; TileIndex lakeCenter = 0;
for (int i = RandomRange(count - 1); i != 0; lakeCenter++) { for (int i = RandomRange(count - 1); i != 0; lakeCenter++) {