From 4d77781ce7cba571701e731b1f442af691933720 Mon Sep 17 00:00:00 2001 From: kwolekr Date: Sat, 22 Jun 2013 17:27:48 -0400 Subject: A handful of minor fixes to various things --- src/biome.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/biome.cpp') diff --git a/src/biome.cpp b/src/biome.cpp index bc84d4bc1..356476b13 100644 --- a/src/biome.cpp +++ b/src/biome.cpp @@ -47,10 +47,10 @@ BiomeDefManager::BiomeDefManager() { b->c_filler = b->c_top; b->filler_height = MAP_GENERATION_LIMIT; - b->height_min = -MAP_GENERATION_LIMIT; - b->height_max = MAP_GENERATION_LIMIT; - b->heat_point = 0.0; - b->humidity_point = 0.0; + b->height_min = -MAP_GENERATION_LIMIT; + b->height_max = MAP_GENERATION_LIMIT; + b->heat_point = 0.0; + b->humidity_point = 0.0; biomes.push_back(b); } @@ -156,8 +156,8 @@ Biome *BiomeDefManager::getBiome(float heat, float humidity, s16 y) { if (y > b->height_max || y < b->height_min) continue; - float d_heat = heat - b->heat_point; - float d_humidity = humidity - b->humidity_point; + float d_heat = heat - b->heat_point; + float d_humidity = humidity - b->humidity_point; float dist = (d_heat * d_heat) + (d_humidity * d_humidity); if (dist < dist_min) { -- cgit v1.2.3