mirror of
https://github.com/moparisthebest/minetest
synced 2024-12-22 23:58:48 -05:00
Mapgen V7: Remove now-unused ridge heightmap
This commit is contained in:
parent
548d99bb45
commit
c5968049bb
@ -63,7 +63,6 @@ MapgenV7::MapgenV7(int mapgenid, MapgenParams *params, EmergeManager *emerge)
|
|||||||
this->zstride_1u1d = csize.X * (csize.Y + 2);
|
this->zstride_1u1d = csize.X * (csize.Y + 2);
|
||||||
|
|
||||||
this->heightmap = new s16[csize.X * csize.Z];
|
this->heightmap = new s16[csize.X * csize.Z];
|
||||||
this->ridge_heightmap = new s16[csize.X * csize.Z];
|
|
||||||
|
|
||||||
MapgenV7Params *sp = (MapgenV7Params *)params->sparams;
|
MapgenV7Params *sp = (MapgenV7Params *)params->sparams;
|
||||||
|
|
||||||
@ -134,7 +133,6 @@ MapgenV7::~MapgenV7()
|
|||||||
|
|
||||||
delete biomegen;
|
delete biomegen;
|
||||||
|
|
||||||
delete[] ridge_heightmap;
|
|
||||||
delete[] heightmap;
|
delete[] heightmap;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -441,7 +439,6 @@ int MapgenV7::generateTerrain()
|
|||||||
for (s16 x = node_min.X; x <= node_max.X; x++, index2d++) {
|
for (s16 x = node_min.X; x <= node_max.X; x++, index2d++) {
|
||||||
s16 surface_y = baseTerrainLevelFromMap(index2d);
|
s16 surface_y = baseTerrainLevelFromMap(index2d);
|
||||||
heightmap[index2d] = surface_y; // Create base terrain heightmap
|
heightmap[index2d] = surface_y; // Create base terrain heightmap
|
||||||
ridge_heightmap[index2d] = surface_y;
|
|
||||||
|
|
||||||
if (surface_y > stone_surface_max_y)
|
if (surface_y > stone_surface_max_y)
|
||||||
stone_surface_max_y = surface_y;
|
stone_surface_max_y = surface_y;
|
||||||
@ -504,9 +501,6 @@ void MapgenV7::generateRidgeTerrain()
|
|||||||
if (nridge + width_mod * height_mod < 0.6)
|
if (nridge + width_mod * height_mod < 0.6)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (y < ridge_heightmap[j])
|
|
||||||
ridge_heightmap[j] = y - 1;
|
|
||||||
|
|
||||||
vm->m_data[vi] = (y > water_level) ? n_air : n_water;
|
vm->m_data[vi] = (y > water_level) ? n_air : n_water;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -58,8 +58,6 @@ class MapgenV7 : public MapgenBasic {
|
|||||||
public:
|
public:
|
||||||
int zstride_1u1d;
|
int zstride_1u1d;
|
||||||
|
|
||||||
s16 *ridge_heightmap;
|
|
||||||
|
|
||||||
u32 spflags;
|
u32 spflags;
|
||||||
Noise *noise_terrain_base;
|
Noise *noise_terrain_base;
|
||||||
Noise *noise_terrain_alt;
|
Noise *noise_terrain_alt;
|
||||||
|
Loading…
Reference in New Issue
Block a user