18 Commits

Author SHA1 Message Date
Maksim Gamarnik
9247f32e0e LGPL 2.1 to 3.0 on all files 2015-08-14 01:26:28 +03:00
paramat
bc063f6791 Treegen: Add pine tree. Force place trunks
Speed-optimise leaves blits
Use MMVManip for make_jungletree
Use correct code style
2015-04-01 22:54:49 +01:00
kwolekr
02e06b423e Shorten ManualMapVoxelManipulator to MMVManip 2015-01-05 02:42:27 -05:00
Craig Robbins
8152f54ac6 Fix seg fault if popping from empty stack (L-system trees)
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-08-23 06:40:27 +02:00
RealBadAngel
4ad9e8de54 L-systems treegen code tweaks. 2014-06-17 00:55:04 +02:00
Novatux
e219892623 Move the sapling growing and grass adding/removing ABMs to Lua 2013-11-02 10:50:11 +01:00
Kahrl
ee90d438b8 Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenu 2013-08-14 21:03:33 +02:00
kwolekr
8cb3c38d28 Make saplings only grow on dirt or grass, make jungle tree trunks only replace air 2013-03-16 19:55:29 -04:00
kwolekr
01c75af672 Re-add jungles, apple trees 2013-03-16 17:06:11 -04:00
kwolekr
7aee7a1898 Clean up Mapgen 2013-03-11 21:32:52 -04:00
Ilya Zhuravlev
a12df55f29 Migrate to STL containers/algorithms. 2013-03-11 19:08:39 -04:00
Sfan5
3fab3825aa Update Copyright Years 2013-02-24 20:15:24 +01:00
PilzAdam
269f01224b Change Minetest-c55 to Minetest 2013-02-24 18:49:03 +01:00
RealBadAngel
1d3f601547 Add seed parameter for default and L-system trees 2013-02-24 02:26:25 +01:00
RealBadAngel
319d61f0fb Treegen update. Some new symbols. Speed up code a bit. 2013-01-23 20:40:09 +02:00
RealBadAngel
dbcc91a798 L-Systems treegen update. 2013-01-07 18:13:14 +04:00
dannydark
19566a8c69 Fixed compile issues on windows
With latest upstream L-Systems treegen.
2012-12-30 16:38:53 +04:00
RealBadAngel
8547e965d0 L-System treegen 2012-12-30 13:42:19 +04:00