mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-27 17:28:41 +00:00
VoxelArea: add_{x,y,z,p} must be static
Fix some documentations issues Use getNodeNoCheck(v3s16, ...) in some cases instead of getNodeNoCheck(x, y, z, ...)
This commit is contained in:
parent
3b27cf30d9
commit
12d1e4ff04
11 changed files with 72 additions and 61 deletions
|
@ -301,10 +301,10 @@ size_t DecoSimple::generate(MMVManip *vm, PcgRandom *pr, v3s16 p, bool ceiling)
|
|||
if (ceiling) {
|
||||
// Ceiling decorations
|
||||
// 'place offset y' is inverted
|
||||
vm->m_area.add_y(em, vi, -place_offset_y);
|
||||
VoxelArea::add_y(em, vi, -place_offset_y);
|
||||
|
||||
for (int i = 0; i < height; i++) {
|
||||
vm->m_area.add_y(em, vi, -1);
|
||||
VoxelArea::add_y(em, vi, -1);
|
||||
content_t c = vm->m_data[vi].getContent();
|
||||
if (c != CONTENT_AIR && c != CONTENT_IGNORE && !force_placement)
|
||||
break;
|
||||
|
@ -312,10 +312,10 @@ size_t DecoSimple::generate(MMVManip *vm, PcgRandom *pr, v3s16 p, bool ceiling)
|
|||
vm->m_data[vi] = MapNode(c_place, 0, param2);
|
||||
}
|
||||
} else { // Heightmap and floor decorations
|
||||
vm->m_area.add_y(em, vi, place_offset_y);
|
||||
VoxelArea::add_y(em, vi, place_offset_y);
|
||||
|
||||
for (int i = 0; i < height; i++) {
|
||||
vm->m_area.add_y(em, vi, 1);
|
||||
VoxelArea::add_y(em, vi, 1);
|
||||
content_t c = vm->m_data[vi].getContent();
|
||||
if (c != CONTENT_AIR && c != CONTENT_IGNORE && !force_placement)
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue