From 9b0d77a549e4c29c9c189ff2a454568fa9746c1e Mon Sep 17 00:00:00 2001 From: kwolekr Date: Tue, 30 Dec 2014 01:48:20 -0500 Subject: Replace instances of height_min/height_max with y_min/y_max to remove ambiguity --- src/mg_biome.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mg_biome.cpp') 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; -- cgit v1.2.3