mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix warnings and other misc. minor changes
This commit is contained in:
parent
5b8855e83c
commit
8d3a68f343
11 changed files with 36 additions and 64 deletions
|
@ -312,7 +312,7 @@ bool MapgenV6::getHaveBeach(v2s16 p) {
|
|||
}
|
||||
|
||||
|
||||
BiomeType MapgenV6::getBiome(v2s16 p) {
|
||||
BiomeV6Type MapgenV6::getBiome(v2s16 p) {
|
||||
int index = (p.Y - node_min.Z) * ystride + (p.X - node_min.X);
|
||||
return getBiome(index, p);
|
||||
}
|
||||
|
@ -387,7 +387,7 @@ bool MapgenV6::getHaveBeach(int index)
|
|||
}
|
||||
|
||||
|
||||
BiomeType MapgenV6::getBiome(int index, v2s16 p)
|
||||
BiomeV6Type MapgenV6::getBiome(int index, v2s16 p)
|
||||
{
|
||||
// Just do something very simple as for now
|
||||
/*double d = noise2d_perlin(
|
||||
|
@ -608,7 +608,7 @@ int MapgenV6::generateGround() {
|
|||
if (surface_y > stone_surface_max_y)
|
||||
stone_surface_max_y = surface_y;
|
||||
|
||||
BiomeType bt = getBiome(index, v2s16(x, z));
|
||||
BiomeV6Type bt = getBiome(index, v2s16(x, z));
|
||||
|
||||
// Fill ground with stone
|
||||
v3s16 em = vm->m_area.getExtent();
|
||||
|
@ -652,7 +652,7 @@ void MapgenV6::addMud() {
|
|||
if (surface_y == vm->m_area.MinEdge.Y - 1)
|
||||
continue;
|
||||
|
||||
BiomeType bt = getBiome(index, v2s16(x, z));
|
||||
BiomeV6Type bt = getBiome(index, v2s16(x, z));
|
||||
addnode = (bt == BT_DESERT) ? n_desert_sand : n_dirt;
|
||||
|
||||
if (bt == BT_DESERT && surface_y + mud_add_amount <= water_level + 1) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue