mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-27 17:28:41 +00:00
Fix some minor code issues all over the place
This commit is contained in:
parent
289425f6bd
commit
74762470b2
19 changed files with 45 additions and 109 deletions
|
@ -297,7 +297,7 @@ int MapgenV7::getSpawnLevelAtPoint(v2s16 p)
|
|||
int iters = 256;
|
||||
while (iters > 0 && y <= max_spawn_y) {
|
||||
if (!getMountainTerrainAtPoint(p.X, y + 1, p.Y)) {
|
||||
if (y <= water_level || y > max_spawn_y)
|
||||
if (y <= water_level)
|
||||
return MAX_MAP_GENERATION_LIMIT; // Unsuitable spawn point
|
||||
|
||||
// y + 1 due to biome 'dust'
|
||||
|
|
|
@ -406,7 +406,8 @@ treegen::error make_ltree(MMVManip &vmanip, v3s16 p0,
|
|||
v3f(position.X, position.Y, position.Z - 1),
|
||||
tree_definition
|
||||
);
|
||||
} if (!stack_orientation.empty()) {
|
||||
}
|
||||
if (!stack_orientation.empty()) {
|
||||
s16 size = 1;
|
||||
for (x = -size; x <= size; x++)
|
||||
for (y = -size; y <= size; y++)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue