mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
Modernize various files (src/m*) (#6267)
* Modernize various files (src/m*) * range-based for loops * code style * C++ headers instead of C headers * Default operators * empty function Thanks to clang-tidy
This commit is contained in:
parent
fb196be8cf
commit
c427533389
34 changed files with 254 additions and 355 deletions
|
@ -156,9 +156,9 @@ int MapgenV5::getSpawnLevelAtPoint(v2s16 p)
|
|||
if (n_ground * f > y - h) { // If solid
|
||||
if (y < water_level || y > max_spawn_y)
|
||||
return MAX_MAP_GENERATION_LIMIT; // Unsuitable spawn point
|
||||
else
|
||||
// y + 2 because y is surface and due to biome 'dust' nodes.
|
||||
return y + 2;
|
||||
|
||||
// y + 2 because y is surface and due to biome 'dust' nodes.
|
||||
return y + 2;
|
||||
}
|
||||
}
|
||||
// Unsuitable spawn position, no ground found
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue