aboutsummaryrefslogtreecommitdiff
path: root/src/mapgen/mg_decoration.cpp
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2018-03-09 08:49:00 +0100
committerLoïc Blot <nerzhul@users.noreply.github.com>2018-03-09 23:27:26 +0100
commit12d1e4ff0486f86ae20051daa1135dc7db366023 (patch)
tree20505a9d8b05540cbdcb8faf2da9e4542126e9fe /src/mapgen/mg_decoration.cpp
parent3b27cf30d99a5b4e82677c253bee269574edbaa0 (diff)
downloadminetest-12d1e4ff0486f86ae20051daa1135dc7db366023.tar.gz
minetest-12d1e4ff0486f86ae20051daa1135dc7db366023.tar.bz2
minetest-12d1e4ff0486f86ae20051daa1135dc7db366023.zip
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, ...)
Diffstat (limited to 'src/mapgen/mg_decoration.cpp')
-rw-r--r--src/mapgen/mg_decoration.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mapgen/mg_decoration.cpp b/src/mapgen/mg_decoration.cpp
index 2491ef2fd..dd621db11 100644
--- a/src/mapgen/mg_decoration.cpp
+++ b/src/mapgen/mg_decoration.cpp
@@ -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;