mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Code modernization: src/m* (part 2)
* empty function * default constructor/destructor * remove unused Map::emergeSector(a,b) * for range-based loops * migrate a dirs[7] table to direction tables * remove various old unused function
This commit is contained in:
parent
e53d8a7536
commit
b5f7249a7e
13 changed files with 161 additions and 246 deletions
|
@ -454,20 +454,21 @@ BiomeV6Type MapgenV6::getBiome(int index, v2s16 p)
|
|||
return BT_TUNDRA;
|
||||
}
|
||||
|
||||
return BT_NORMAL;
|
||||
} else {
|
||||
if (d > freq_desert)
|
||||
return BT_DESERT;
|
||||
|
||||
if ((spflags & MGV6_BIOMEBLEND) && (d > freq_desert - 0.10) &&
|
||||
((noise2d(p.X, p.Y, seed) + 1.0) > (freq_desert - d) * 20.0))
|
||||
return BT_DESERT;
|
||||
|
||||
if ((spflags & MGV6_JUNGLES) && h > 0.75)
|
||||
return BT_JUNGLE;
|
||||
|
||||
return BT_NORMAL;
|
||||
}
|
||||
|
||||
if (d > freq_desert)
|
||||
return BT_DESERT;
|
||||
|
||||
if ((spflags & MGV6_BIOMEBLEND) && (d > freq_desert - 0.10) &&
|
||||
((noise2d(p.X, p.Y, seed) + 1.0) > (freq_desert - d) * 20.0))
|
||||
return BT_DESERT;
|
||||
|
||||
if ((spflags & MGV6_JUNGLES) && h > 0.75)
|
||||
return BT_JUNGLE;
|
||||
|
||||
return BT_NORMAL;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue