aboutsummaryrefslogtreecommitdiff
path: root/src/treegen.cpp
AgeCommit message (Collapse)Author
2017-11-08Move files to subdirectories (#6599)Vitaliy
* Move files around
2017-08-20Modernize source code: last part (#6285)Loïc Blot
* Modernize source code: last par * Use empty when needed * Use emplace_back instead of push_back when needed * For range-based loops * Initializers fixes * constructors, destructors default * c++ C stl includes
2017-08-18Optimize headers (part 2) (#6272)Loïc Blot
* Optimize headers (part 2) * less debug.h in headers * less remoteplayer.h for everybody * Cleanup (part 2) * camera.h: mesh.h * mapgen.h: mapnode.h * serverenvironment.h: mapblock.h * nodedef.h: shader.h
2017-08-14L-system: Fix leaves cutting through stemsHybrid Dog
2017-07-04Treegen: Fix s16 overflow warning (#6082)Vincent Glize
2017-06-05Remove SharedPtr, it's not used and will be never used, we use C++11Loic Blot
2017-04-19Fix various variables passed by copy instead of const ref (#5610)Loïc Blot
Pointed by cppcheck
2017-03-11Light calculation: New bulk node lighting codeDániel Juhász
This commit introduces a new bulk node lighting algorithm to minimize lighting bugs during l-system tree generation, schematic placement and non-mapgen-object lua voxelmanip light calculation. If the block above the changed area is not loaded, it gets loaded to avoid lighting bugs. Light is updated as soon as write_to_map is called on a voxel manipulator, therefore update_map does nothing.
2017-01-20Remove `mathconstants.h` and use the correct way to get `M_PI` in MSVC. (#5072)red-001
2017-01-19Fix MSVC build Build broken by 98e36d7SmallJoker
2017-01-08Move ServerEnvironment to dedicated cpp/header filesLoic Blot
* also cleanup some unneeded inclusions
2016-07-12Treegen: Improve use of signed vs. unsigned integersparamat
To fix GCC 6.1.1 compilation warning: 'assuming signed overflow does not occur when assuming that (X - c) > X is always false'
2016-06-04Change internal type for seeds to s32kwolekr
This fixes value truncation (and therefore incompatibility) on platforms with an LP32 data model, such as VAX or MS-DOS.
2015-08-10Treegen: Rename pine tree mapgen aliasparamat
2015-07-13Mgv6/treegen: (Re)Add fallback nodes for compatibility with subgamesparamat
2015-06-12Minimal: Add snow biome and jungleleaves nodes. Add mapgen aliasesparamat
Treegen: Remove alias checks from jungletree generation for speed
2015-04-01Treegen: Add pine tree. Force place trunksparamat
Speed-optimise leaves blits Use MMVManip for make_jungletree Use correct code style
2015-01-05Shorten ManualMapVoxelManipulator to MMVManipkwolekr
2014-08-23Fix seg fault if popping from empty stack (L-system trees)Craig Robbins
See: https://github.com/minetest/minetest/issues/1525 Background Wuzzy2: If you attempt to spawn a L-system tree with minetest.spawn_tree, you can make Minetest crash if it is attempted to pop an empty stack. ShadowNinja: This shouldn't cause a segmentation fault, but it should throw a Lua error Commit Description This commit throws a Lua error instead of causing a segmentation fault. The server will still "crash" but will include a Lua backtrace. L-Systems fix randomness Unless a random seed is provided (via Lua treedef) seed the PRNG with a different seed for each tree Resolves: https://github.com/minetest/minetest/issues/1469 Fix l-system crash when treedef random_level not set by Lua
2014-06-17L-systems treegen code tweaks.RealBadAngel
2013-11-02Move the sapling growing and grass adding/removing ABMs to LuaNovatux
2013-08-14Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenuKahrl
2013-03-16Make saplings only grow on dirt or grass, make jungle tree trunks only ↵kwolekr
replace air
2013-03-16Re-add jungles, apple treeskwolekr
2013-03-11Clean up Mapgenkwolekr
2013-03-11Migrate to STL containers/algorithms.Ilya Zhuravlev
2013-02-24Update Copyright YearsSfan5
2013-02-24Change Minetest-c55 to MinetestPilzAdam
2013-02-24Add seed parameter for default and L-system treesRealBadAngel
2013-01-23Treegen update. Some new symbols. Speed up code a bit.RealBadAngel
2013-01-07L-Systems treegen update.RealBadAngel
2012-12-30Fixed compile issues on windowsdannydark
With latest upstream L-Systems treegen.
2012-12-30L-System treegenRealBadAngel