aboutsummaryrefslogtreecommitdiff
path: root/src/biome.cpp
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2013-06-22 17:27:48 -0400
committerkwolekr <kwolekr@minetest.net>2013-06-22 17:27:48 -0400
commit4d77781ce7cba571701e731b1f442af691933720 (patch)
treef5f4d419e774031c03031a91644de8e35af77835 /src/biome.cpp
parentc1b829077a3518f3a129eee11887b2358a53f20b (diff)
downloadminetest-4d77781ce7cba571701e731b1f442af691933720.tar.gz
minetest-4d77781ce7cba571701e731b1f442af691933720.tar.bz2
minetest-4d77781ce7cba571701e731b1f442af691933720.zip
A handful of minor fixes to various things
Diffstat (limited to 'src/biome.cpp')
-rw-r--r--src/biome.cpp12
1 files changed, 6 insertions, 6 deletions
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) {