mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Replace instances of height_min/height_max with y_min/y_max to remove ambiguity
This commit is contained in:
parent
b589353d89
commit
9b0d77a549
7 changed files with 37 additions and 27 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue