mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-30 19:22:14 +00:00
Code style fixes.
This commit is contained in:
parent
24e9db07ec
commit
af3f696423
43 changed files with 493 additions and 484 deletions
|
@ -763,7 +763,7 @@ void MapgenBasic::generateBiomes()
|
|||
// If no stone surface detected in mapchunk column and a water surface
|
||||
// biome fallback exists, add it to the biomemap. This avoids water
|
||||
// surface decorations failing in deep water.
|
||||
if (biomemap[index] == BIOME_NONE && water_biome_index != 0)
|
||||
if (biomemap[index] == BIOME_NONE && water_biome_index != 0)
|
||||
biomemap[index] = water_biome_index;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -172,7 +172,7 @@ int MapgenFlat::getSpawnLevelAtPoint(v2s16 p)
|
|||
stone_level = ground_level - depress;
|
||||
} else if ((spflags & MGFLAT_HILLS) && n_terrain > hill_threshold) {
|
||||
s16 rise = (n_terrain - hill_threshold) * hill_steepness;
|
||||
stone_level = ground_level + rise;
|
||||
stone_level = ground_level + rise;
|
||||
}
|
||||
|
||||
if (ground_level < water_level)
|
||||
|
@ -296,7 +296,7 @@ s16 MapgenFlat::generateTerrain()
|
|||
stone_level = ground_level - depress;
|
||||
} else if ((spflags & MGFLAT_HILLS) && n_terrain > hill_threshold) {
|
||||
s16 rise = (n_terrain - hill_threshold) * hill_steepness;
|
||||
stone_level = ground_level + rise;
|
||||
stone_level = ground_level + rise;
|
||||
}
|
||||
|
||||
u32 vi = vm->m_area.index(x, node_min.Y - 1, z);
|
||||
|
|
|
@ -104,15 +104,15 @@ void MapgenFractalParams::readParams(const Settings *settings)
|
|||
settings->getU16NoEx("mgfractal_fractal", fractal);
|
||||
settings->getU16NoEx("mgfractal_iterations", iterations);
|
||||
|
||||
std::optional<v3f> mgfractal_scale;
|
||||
if (settings->getV3FNoEx("mgfractal_scale", mgfractal_scale) && mgfractal_scale.has_value()) {
|
||||
scale = *mgfractal_scale;
|
||||
}
|
||||
std::optional<v3f> mgfractal_scale;
|
||||
if (settings->getV3FNoEx("mgfractal_scale", mgfractal_scale) && mgfractal_scale.has_value()) {
|
||||
scale = *mgfractal_scale;
|
||||
}
|
||||
|
||||
std::optional<v3f> mgfractal_offset;
|
||||
if (settings->getV3FNoEx("mgfractal_offset", mgfractal_offset) && mgfractal_offset.has_value()) {
|
||||
offset = *mgfractal_offset;
|
||||
}
|
||||
std::optional<v3f> mgfractal_offset;
|
||||
if (settings->getV3FNoEx("mgfractal_offset", mgfractal_offset) && mgfractal_offset.has_value()) {
|
||||
offset = *mgfractal_offset;
|
||||
}
|
||||
|
||||
settings->getFloatNoEx("mgfractal_slice_w", slice_w);
|
||||
settings->getFloatNoEx("mgfractal_julia_x", julia_x);
|
||||
|
|
|
@ -276,29 +276,29 @@ treegen::error make_ltree(MMVManip &vmanip, v3s16 p0,
|
|||
|
||||
Key for Special L-System Symbols used in Axioms
|
||||
|
||||
G - move forward one unit with the pen up
|
||||
F - move forward one unit with the pen down drawing trunks and branches
|
||||
f - move forward one unit with the pen down drawing leaves (100% chance)
|
||||
T - move forward one unit with the pen down drawing trunks only
|
||||
R - move forward one unit with the pen down placing fruit
|
||||
A - replace with rules set A
|
||||
B - replace with rules set B
|
||||
C - replace with rules set C
|
||||
D - replace with rules set D
|
||||
a - replace with rules set A, chance 90%
|
||||
b - replace with rules set B, chance 80%
|
||||
c - replace with rules set C, chance 70%
|
||||
d - replace with rules set D, chance 60%
|
||||
+ - yaw the turtle right by angle degrees
|
||||
- - yaw the turtle left by angle degrees
|
||||
& - pitch the turtle down by angle degrees
|
||||
^ - pitch the turtle up by angle degrees
|
||||
/ - roll the turtle to the right by angle degrees
|
||||
* - roll the turtle to the left by angle degrees
|
||||
[ - save in stack current state info
|
||||
] - recover from stack state info
|
||||
G - move forward one unit with the pen up
|
||||
F - move forward one unit with the pen down drawing trunks and branches
|
||||
f - move forward one unit with the pen down drawing leaves (100% chance)
|
||||
T - move forward one unit with the pen down drawing trunks only
|
||||
R - move forward one unit with the pen down placing fruit
|
||||
A - replace with rules set A
|
||||
B - replace with rules set B
|
||||
C - replace with rules set C
|
||||
D - replace with rules set D
|
||||
a - replace with rules set A, chance 90%
|
||||
b - replace with rules set B, chance 80%
|
||||
c - replace with rules set C, chance 70%
|
||||
d - replace with rules set D, chance 60%
|
||||
+ - yaw the turtle right by angle degrees
|
||||
- - yaw the turtle left by angle degrees
|
||||
& - pitch the turtle down by angle degrees
|
||||
^ - pitch the turtle up by angle degrees
|
||||
/ - roll the turtle to the right by angle degrees
|
||||
* - roll the turtle to the left by angle degrees
|
||||
[ - save in stack current state info
|
||||
] - recover from stack state info
|
||||
|
||||
*/
|
||||
*/
|
||||
|
||||
s16 x,y,z;
|
||||
for (s16 i = 0; i < (s16)axiom.size(); i++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue