1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-02 16:38:41 +00:00

Biomes: Define and use biome_t for biome IDs

This commit is contained in:
kwolekr 2016-06-04 03:00:45 -04:00
parent 8ed467d438
commit 109c7e3349
3 changed files with 11 additions and 10 deletions

View file

@ -128,7 +128,7 @@ BiomeGenOriginal::BiomeGenOriginal(BiomeManager *biomemgr,
heatmap = noise_heat->result;
humidmap = noise_humidity->result;
biomemap = new u8[m_csize.X * m_csize.Z];
biomemap = new biome_t[m_csize.X * m_csize.Z];
}
BiomeGenOriginal::~BiomeGenOriginal()
@ -171,7 +171,7 @@ void BiomeGenOriginal::calcBiomeNoise(v3s16 pmin)
}
u8 *BiomeGenOriginal::getBiomes(s16 *heightmap)
biome_t *BiomeGenOriginal::getBiomes(s16 *heightmap)
{
for (s32 i = 0; i != m_csize.X * m_csize.Z; i++) {
Biome *biome = calcBiomeFromNoise(