From 0f3c2f65414f332fad510fb8651dd59d506aad2e Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Fri, 27 Jan 2012 13:24:06 +0200 Subject: voxalgo::clearLightAndCollectSources --- src/voxelalgorithms.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/voxelalgorithms.h') diff --git a/src/voxelalgorithms.h b/src/voxelalgorithms.h index 3dea233dc..9c90e18a9 100644 --- a/src/voxelalgorithms.h +++ b/src/voxelalgorithms.h @@ -21,6 +21,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #define VOXELALGORITHMS_HEADER #include "voxel.h" +#include "mapnode.h" namespace voxalgo { @@ -30,6 +31,11 @@ namespace voxalgo void setLight(VoxelManipulator &v, VoxelArea a, u8 light, INodeDefManager *ndef); +void clearLightAndCollectSources(VoxelManipulator &v, VoxelArea a, + enum LightBank bank, INodeDefManager *ndef, + core::map & light_sources, + core::map & unlight_from); + struct SunlightPropagateResult { bool bottom_sunlight_valid; -- cgit v1.2.3