aboutsummaryrefslogtreecommitdiff
path: root/src/treegen.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Move files to subdirectories (#6599)Vitaliy2017-11-081-872/+0
| | | | * Move files around
* Modernize source code: last part (#6285)Loïc Blot2017-08-201-14/+12
| | | | | | | | | | | * 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
* Optimize headers (part 2) (#6272)Loïc Blot2017-08-181-0/+1
| | | | | | | | | | | | | | * 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
* L-system: Fix leaves cutting through stemsHybrid Dog2017-08-141-3/+6
|
* Treegen: Fix s16 overflow warning (#6082)Vincent Glize2017-07-041-7/+4
|
* Remove SharedPtr, it's not used and will be never used, we use C++11Loic Blot2017-06-051-2/+0
|
* Fix various variables passed by copy instead of const ref (#5610)Loïc Blot2017-04-191-1/+1
| | | Pointed by cppcheck
* Light calculation: New bulk node lighting codeDániel Juhász2017-03-111-5/+2
| | | | | | | | | | | 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.
* Remove `mathconstants.h` and use the correct way to get `M_PI` in MSVC. (#5072)red-0012017-01-201-1/+0
|
* Fix MSVC build Build broken by 98e36d7SmallJoker2017-01-191-0/+1
|
* Move ServerEnvironment to dedicated cpp/header filesLoic Blot2017-01-081-2/+1
| | | | * also cleanup some unneeded inclusions
* Treegen: Improve use of signed vs. unsigned integersparamat2016-07-121-3/+3
| | | | | | To fix GCC 6.1.1 compilation warning: 'assuming signed overflow does not occur when assuming that (X - c) > X is always false'
* Change internal type for seeds to s32kwolekr2016-06-041-4/+4
| | | | | This fixes value truncation (and therefore incompatibility) on platforms with an LP32 data model, such as VAX or MS-DOS.
* Treegen: Rename pine tree mapgen aliasparamat2015-08-101-1/+1
|
* Mgv6/treegen: (Re)Add fallback nodes for compatibility with subgamesparamat2015-07-131-5/+22
|
* Minimal: Add snow biome and jungleleaves nodes. Add mapgen aliasesparamat2015-06-121-9/+2
| | | | Treegen: Remove alias checks from jungletree generation for speed
* Treegen: Add pine tree. Force place trunksparamat2015-04-011-265/+491
| | | | | | Speed-optimise leaves blits Use MMVManip for make_jungletree Use correct code style
* Shorten ManualMapVoxelManipulator to MMVManipkwolekr2015-01-051-10/+10
|
* Fix seg fault if popping from empty stack (L-system trees)Craig Robbins2014-08-231-4/+23
| | | | | | | | | | | | | | | | | | 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
* L-systems treegen code tweaks.RealBadAngel2014-06-171-3/+3
|
* Move the sapling growing and grass adding/removing ABMs to LuaNovatux2013-11-021-0/+10
|
* Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenuKahrl2013-08-141-0/+1
|
* Make saplings only grow on dirt or grass, make jungle tree trunks only ↵kwolekr2013-03-161-10/+18
| | | | replace air
* Re-add jungles, apple treeskwolekr2013-03-161-2/+9
|
* Clean up Mapgenkwolekr2013-03-111-17/+17
|
* Migrate to STL containers/algorithms.Ilya Zhuravlev2013-03-111-13/+7
|
* Update Copyright YearsSfan52013-02-241-1/+1
|
* Change Minetest-c55 to MinetestPilzAdam2013-02-241-1/+1
|
* Add seed parameter for default and L-system treesRealBadAngel2013-02-241-25/+25
|
* Treegen update. Some new symbols. Speed up code a bit.RealBadAngel2013-01-231-33/+93
|
* L-Systems treegen update.RealBadAngel2013-01-071-11/+35
|
* Fixed compile issues on windowsdannydark2012-12-301-6/+8
| | | | With latest upstream L-Systems treegen.
* L-System treegenRealBadAngel2012-12-301-0/+518