Exemple #1
0
int MapgenV7::generateTerrain() {
	int ymax = generateBaseTerrain();

	if (spflags & MGV7_MOUNTAINS)
		generateMountainTerrain();

	if (spflags & MGV7_RIDGES)
		generateRidgeTerrain();

	return ymax;
}
Exemple #2
0
int MapgenV7::generateTerrain()
{
	s16 stone_surface_min_y;
	s16 stone_surface_max_y;

	generateBaseTerrain(&stone_surface_min_y, &stone_surface_max_y);

	if ((spflags & MGV7_MOUNTAINS) && stone_surface_min_y < node_max.Y)
		stone_surface_max_y = generateMountainTerrain(stone_surface_max_y);

	if (spflags & MGV7_RIDGES)
		generateRidgeTerrain();

	return stone_surface_max_y;
}