diff options
author | kwolekr <kwolekr@minetest.net> | 2014-12-30 01:48:20 -0500 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2014-12-30 01:48:20 -0500 |
commit | 9b0d77a549e4c29c9c189ff2a454568fa9746c1e (patch) | |
tree | 60edafd192aa036e954d8a3db77e29a27dab8475 /src/mg_biome.cpp | |
parent | b589353d89a5a5cd2dd999a13ca039079bee0ece (diff) | |
download | minetest-9b0d77a549e4c29c9c189ff2a454568fa9746c1e.tar.gz minetest-9b0d77a549e4c29c9c189ff2a454568fa9746c1e.tar.bz2 minetest-9b0d77a549e4c29c9c189ff2a454568fa9746c1e.zip |
Replace instances of height_min/height_max with y_min/y_max to remove ambiguity
Diffstat (limited to 'src/mg_biome.cpp')
-rw-r--r-- | src/mg_biome.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mg_biome.cpp b/src/mg_biome.cpp index 0492980ee..0616d81a2 100644 --- a/src/mg_biome.cpp +++ b/src/mg_biome.cpp @@ -45,8 +45,8 @@ BiomeManager::BiomeManager(IGameDef *gamedef) : b->depth_filler = 0; b->height_shore = 0; b->depth_water_top = 0; - b->height_min = -MAP_GENERATION_LIMIT; - b->height_max = MAP_GENERATION_LIMIT; + b->y_min = -MAP_GENERATION_LIMIT; + b->y_max = MAP_GENERATION_LIMIT; b->heat_point = 0.0; b->humidity_point = 0.0; @@ -91,7 +91,7 @@ Biome *BiomeManager::getBiome(float heat, float humidity, s16 y) for (size_t i = 1; i < m_elements.size(); i++) { b = (Biome *)m_elements[i]; - if (!b || y > b->height_max || y < b->height_min) + if (!b || y > b->y_max || y < b->y_min) continue; float d_heat = heat - b->heat_point; |