mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Math mapgen fix, ip show on connect, pathfinder segfault fix
This commit is contained in:
parent
75b8c13b00
commit
f764297be2
7 changed files with 21 additions and 34 deletions
|
@ -76,7 +76,10 @@ MapgenV7::MapgenV7(int mapgenid, MapgenV7Params *params, EmergeManager *emerge)
|
|||
|
||||
this->seed = (int)params->seed;
|
||||
this->water_level = params->water_level;
|
||||
this->flags = params->flags;
|
||||
this->flags = params->flags;
|
||||
this->lighting = 1;
|
||||
this->ridges = 1;
|
||||
|
||||
this->csize = v3s16(1, 1, 1) * params->chunksize * MAP_BLOCKSIZE;
|
||||
this->ystride = csize.X; //////fix this
|
||||
|
||||
|
@ -183,7 +186,8 @@ void MapgenV7::makeChunk(BlockMakeData *data) {
|
|||
c_lava_source = ndef->getId("mapgen_lava_source");
|
||||
|
||||
generateTerrain();
|
||||
carveRidges();
|
||||
if (this->ridges)
|
||||
carveRidges();
|
||||
|
||||
if (flags & MG_CAVES)
|
||||
generateCaves(stone_surface_max_y);
|
||||
|
@ -211,7 +215,8 @@ void MapgenV7::makeChunk(BlockMakeData *data) {
|
|||
|
||||
updateLiquid(&data->transforming_liquid, full_node_min, full_node_max);
|
||||
|
||||
calcLighting(node_min - v3s16(1, 0, 1) * MAP_BLOCKSIZE,
|
||||
if (this->lighting)
|
||||
calcLighting(node_min - v3s16(1, 0, 1) * MAP_BLOCKSIZE,
|
||||
node_max + v3s16(1, 0, 1) * MAP_BLOCKSIZE);
|
||||
//setLighting(node_min - v3s16(1, 0, 1) * MAP_BLOCKSIZE,
|
||||
// node_max + v3s16(1, 0, 1) * MAP_BLOCKSIZE, 0xFF);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue