Mapgen V7: Remove now-unused ridge heightmap

This commit is contained in:
kwolekr 2016-05-19 14:05:51 -04:00
parent 548d99bb45
commit c5968049bb
2 changed files with 2 additions and 10 deletions

@ -63,7 +63,6 @@ MapgenV7::MapgenV7(int mapgenid, MapgenParams *params, EmergeManager *emerge)
this->zstride_1u1d = csize.X * (csize.Y + 2);
this->heightmap = new s16[csize.X * csize.Z];
this->ridge_heightmap = new s16[csize.X * csize.Z];
MapgenV7Params *sp = (MapgenV7Params *)params->sparams;
@ -134,7 +133,6 @@ MapgenV7::~MapgenV7()
delete biomegen;
delete[] ridge_heightmap;
delete[] heightmap;
}
@ -441,7 +439,6 @@ int MapgenV7::generateTerrain()
for (s16 x = node_min.X; x <= node_max.X; x++, index2d++) {
s16 surface_y = baseTerrainLevelFromMap(index2d);
heightmap[index2d] = surface_y; // Create base terrain heightmap
ridge_heightmap[index2d] = surface_y;
if (surface_y > stone_surface_max_y)
stone_surface_max_y = surface_y;
@ -504,9 +501,6 @@ void MapgenV7::generateRidgeTerrain()
if (nridge + width_mod * height_mod < 0.6)
continue;
if (y < ridge_heightmap[j])
ridge_heightmap[j] = y - 1;
vm->m_data[vi] = (y > water_level) ? n_air : n_water;
}
}

@ -58,8 +58,6 @@ class MapgenV7 : public MapgenBasic {
public:
int zstride_1u1d;
s16 *ridge_heightmap;
u32 spflags;
Noise *noise_terrain_base;
Noise *noise_terrain_alt;