diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-01-30 01:44:54 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-01-30 01:44:54 +0200 |
commit | be851871cd43316d12fd9a5f2cc6dec98a1c9ce0 (patch) | |
tree | 3f03a82db7c4449bcfebe499ab2843f1fc20b0c4 /src/voxel.cpp | |
parent | 8788fffec0faf99702e5a84eaadbabc671a023c8 (diff) | |
download | minetest-be851871cd43316d12fd9a5f2cc6dec98a1c9ce0.tar.gz minetest-be851871cd43316d12fd9a5f2cc6dec98a1c9ce0.tar.bz2 minetest-be851871cd43316d12fd9a5f2cc6dec98a1c9ce0.zip |
map generation framework under development... not quite operational at this point.
Diffstat (limited to 'src/voxel.cpp')
-rw-r--r-- | src/voxel.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/voxel.cpp b/src/voxel.cpp index d68a8db02..02635d3af 100644 --- a/src/voxel.cpp +++ b/src/voxel.cpp @@ -536,10 +536,13 @@ void VoxelManipulator::spreadLight(enum LightBank bank, v3s16 p) } } -#if 1 +#if 0 /* Lights neighbors of from_nodes, collects all them and then goes on recursively. + + NOTE: This is faster in small areas but will overflow the + stack on large areas. Thus it is not used. */ void VoxelManipulator::spreadLight(enum LightBank bank, core::map<v3s16, bool> & from_nodes) @@ -560,7 +563,7 @@ void VoxelManipulator::spreadLight(enum LightBank bank, } #endif -#if 0 +#if 1 /* Lights neighbors of from_nodes, collects all them and then goes on recursively. |