mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
Use member initialization list instead of the constructor's body (#6371)
* Use member initialization list instead of the constructor's body
This commit is contained in:
parent
eabf04bd34
commit
5bef339388
7 changed files with 73 additions and 73 deletions
|
@ -82,12 +82,12 @@ MapgenFractal::~MapgenFractal()
|
|||
}
|
||||
|
||||
|
||||
MapgenFractalParams::MapgenFractalParams()
|
||||
MapgenFractalParams::MapgenFractalParams():
|
||||
np_seabed (-14, 9, v3f(600, 600, 600), 41900, 5, 0.6, 2.0),
|
||||
np_filler_depth (0, 1.2, v3f(150, 150, 150), 261, 3, 0.7, 2.0),
|
||||
np_cave1 (0, 12, v3f(61, 61, 61), 52534, 3, 0.5, 2.0),
|
||||
np_cave2 (0, 12, v3f(67, 67, 67), 10325, 3, 0.5, 2.0)
|
||||
{
|
||||
np_seabed = NoiseParams(-14, 9, v3f(600, 600, 600), 41900, 5, 0.6, 2.0);
|
||||
np_filler_depth = NoiseParams(0, 1.2, v3f(150, 150, 150), 261, 3, 0.7, 2.0);
|
||||
np_cave1 = NoiseParams(0, 12, v3f(61, 61, 61), 52534, 3, 0.5, 2.0);
|
||||
np_cave2 = NoiseParams(0, 12, v3f(67, 67, 67), 10325, 3, 0.5, 2.0);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue