mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-16 01:45:36 +02:00
Some minor cleanups from the last commit
This commit is contained in:
@@ -191,6 +191,7 @@ float MapgenIndev::baseTerrainLevelFromNoise(v2s16 p) {
|
||||
steepness, height_select);
|
||||
}
|
||||
|
||||
|
||||
float MapgenIndev::baseTerrainLevelFromMap(int index) {
|
||||
if (flags & MG_FLAT)
|
||||
return water_level;
|
||||
@@ -204,6 +205,7 @@ float MapgenIndev::baseTerrainLevelFromMap(int index) {
|
||||
steepness, height_select);
|
||||
}
|
||||
|
||||
|
||||
float MapgenIndev::getMudAmount(int index)
|
||||
{
|
||||
if (flags & MG_FLAT)
|
||||
@@ -216,6 +218,7 @@ float MapgenIndev::getMudAmount(int index)
|
||||
return noiseindev_mud->result[index];
|
||||
}
|
||||
|
||||
|
||||
void MapgenIndev::defineCave(Cave & cave, PseudoRandom ps, v3s16 node_min, bool large_cave) {
|
||||
cave.min_tunnel_diameter = 2;
|
||||
cave.max_tunnel_diameter = ps.range(2,6);
|
||||
@@ -243,4 +246,4 @@ void MapgenIndev::defineCave(Cave & cave, PseudoRandom ps, v3s16 node_min, bool
|
||||
cave.tunnel_routepoints = ps.range(10, ps.range(15,30));
|
||||
}
|
||||
cave.large_cave_is_flat = (ps.range(0,1) == 0);
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user