minetest/src/mapgen
Paramat 922e6ff57e
blitToVManip: Check out-of-bounds using node position not index (#8127)
Previously, when using 'place on vmanip' to add a schematic to a
lua voxelmanip, if part of the schematic was outside the voxelmanip
volume, the outside part would often appear in a strange place
elsewhere inside the voxelmanip instead of being trimmed off.
This was due to the out-of-bounds check checking the index.

A position outside the voxelmanip can have an index that satisfies
'0 <= index <= voxelmanip volume', causing the node to be placed
at a strange position inside the voxelmanip.

Use 'vm->m_area.contains(pos)' instead.
Move index calculation to later in the code to optimise.
2019-01-25 19:01:00 +00:00
..
cavegen.cpp Cavegen: Fix errors when getting biome outside mapchunk (#7480) 2018-06-26 19:35:23 +01:00
cavegen.h Cavegen: Fix variable typo that broke mgvalleys large cave distribution (#7249) 2018-04-17 22:25:59 +01:00
CMakeLists.txt Move files to subdirectories (#6599) 2017-11-08 23:56:20 +01:00
dungeongen.cpp Fix warnings about dungeongen.cpp memcpy() and unused variable in MapBlock::deSerializeNetworkSpecific() (#8122) 2019-01-22 22:13:06 +01:00
dungeongen.h Fix various code issues found by cppcheck (#7741) 2018-09-23 20:12:39 +01:00
mapgen_carpathian.cpp Change mapgen order to ores > dungeons > decorations (#7656) 2018-08-20 18:24:53 +01:00
mapgen_carpathian.h Mgcarpathian: Remove insignificant 'base' noise variation (#7209) 2018-04-05 21:52:10 +01:00
mapgen_flat.cpp Change mapgen order to ores > dungeons > decorations (#7656) 2018-08-20 18:24:53 +01:00
mapgen_flat.h Dungeons: Add Y limits in all mapgens 2018-02-20 15:25:37 +00:00
mapgen_fractal.cpp Change mapgen order to ores > dungeons > decorations (#7656) 2018-08-20 18:24:53 +01:00
mapgen_fractal.h Dungeons: Add Y limits in all mapgens 2018-02-20 15:25:37 +00:00
mapgen_singlenode.cpp Fix various code issues found by cppcheck (#7741) 2018-09-23 20:12:39 +01:00
mapgen_singlenode.h Fix various code issues found by cppcheck (#7741) 2018-09-23 20:12:39 +01:00
mapgen_v5.cpp Change mapgen order to ores > dungeons > decorations (#7656) 2018-08-20 18:24:53 +01:00
mapgen_v5.h Mgv5: Change tunnel parameters to those of other mapgens (#7641) 2018-08-16 20:10:56 +02:00
mapgen_v6.cpp Dungeons: Fix duplication of y limit parameters (#7359) 2018-05-20 23:45:53 +01:00
mapgen_v6.h Dungeons: Add Y limits in all mapgens 2018-02-20 15:25:37 +00:00
mapgen_v7.cpp Change mapgen order to ores > dungeons > decorations (#7656) 2018-08-20 18:24:53 +01:00
mapgen_v7.h Mgv7: Code cleanup (#7299) 2018-05-07 03:31:55 +01:00
mapgen_valleys.cpp Fix Mapgen Valleys getSpawnLevelAtPoint() (#7756) 2018-10-03 00:50:21 +01:00
mapgen_valleys.h Mgvalleys: Make river depth variation and humidity drop optional (#7532) 2018-07-18 03:34:05 +01:00
mapgen.cpp Biome API: Fix absent water decorations and dust, in deep water (#7470) 2018-06-21 19:28:54 +01:00
mapgen.h Mapgen flags: Add 'biomes' global mapgen flag (#7355) 2018-06-08 23:24:36 +01:00
mg_biome.cpp Biome API: Fix absent water decorations and dust, in deep water (#7470) 2018-06-21 19:28:54 +01:00
mg_biome.h Biome API / dungeons: Add biome-defined dungeon nodes 2018-04-07 22:09:54 +01:00
mg_decoration.cpp Decoration API: Add lightweight ability to have complete coverage (#7456) 2018-06-24 17:14:18 +01:00
mg_decoration.h Mapgen folder: Update and improve copyright information of files 2018-01-15 04:42:08 +00:00
mg_ore.cpp Fix build on gcc 5.0 (#7586) 2018-07-26 21:49:38 +02:00
mg_ore.h Vein ore: Fix bug caused by changing perlinmap Y size (#7371) 2018-05-24 22:20:06 +01:00
mg_schematic.cpp blitToVManip: Check out-of-bounds using node position not index (#8127) 2019-01-25 19:01:00 +00:00
mg_schematic.h Node definition manager refactor (#7016) 2018-02-10 21:04:16 +01:00
treegen.cpp Node definition manager refactor (#7016) 2018-02-10 21:04:16 +01:00
treegen.h Node definition manager refactor (#7016) 2018-02-10 21:04:16 +01:00