Skip to content

Commit

Permalink
Remove manual biome noise translation
Browse files Browse the repository at this point in the history
  • Loading branch information
kwolekr committed Dec 17, 2014
1 parent 082256a commit 67063ed
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/mg_biome.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}


Expand Down

0 comments on commit 67063ed

Please sign in to comment.