Skip to content
Snippets Groups Projects
Commit 67063ed5 authored by kwolekr's avatar kwolekr
Browse files

Remove manual biome noise translation

parent 082256a9
No related branches found
No related tags found
No related merge requests found
......@@ -72,14 +72,8 @@ BiomeManager::~BiomeManager()
void BiomeManager::calcBiomes(s16 sx, s16 sy, float *heat_map,
float *humidity_map, s16 *height_map, u8 *biomeid_map)
{
int i = 0;
for (int y = 0; y != sy; y++) {
for (int x = 0; x != sx; x++, i++) {
float heat = (heat_map[i] + 1) * 50;
float humidity = (humidity_map[i] + 1) * 50;
biomeid_map[i] = getBiome(heat, humidity, height_map[i])->id;
}
}
for (size_t i = 0; i != sx * sy; i++)
biomeid_map[i] = getBiome(heat_map[i], humidity_map[i], height_map[i])->id;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment