]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/voxelalgorithms.cpp
Removed Mapgen V7 for now
[dragonfireclient.git] / src / voxelalgorithms.cpp
index ab6cbdfa2cf2aef1a45bf3649804dfd29ee404cc..795530d40eede907d58b2ac00ce14ec8922ff5c2 100644 (file)
@@ -3,16 +3,16 @@ Minetest-c55
 Copyright (C) 2010-2012 celeron55, Perttu Ahola <celeron55@gmail.com>
 
 This program is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2 of the License, or
+it under the terms of the GNU Lesser General Public License as published by
+the Free Software Foundation; either version 2.1 of the License, or
 (at your option) any later version.
 
 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-GNU General Public License for more details.
+GNU Lesser General Public License for more details.
 
-You should have received a copy of the GNU General Public License along
+You should have received a copy of the GNU Lesser General Public License along
 with this program; if not, write to the Free Software Foundation, Inc.,
 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
@@ -86,10 +86,10 @@ SunlightPropagateResult propagateSunlight(VoxelManipulator &v, VoxelArea a,
        required_a.pad(v3s16(0,1,0));
        // Make sure we have access to it
        v.emerge(a);
-       
+
        s16 max_y = a.MaxEdge.Y;
        s16 min_y = a.MinEdge.Y;
-       
+
        for(s32 x=a.MinEdge.X; x<=a.MaxEdge.X; x++)
        for(s32 z=a.MinEdge.Z; z<=a.MaxEdge.Z; z++)
        {
@@ -125,11 +125,11 @@ SunlightPropagateResult propagateSunlight(VoxelManipulator &v, VoxelArea a,
 
                        if(incoming_light > old_light)
                                n.setLight(LIGHTBANK_DAY, incoming_light, ndef);
-                       
+
                        if(diminish_light(incoming_light) != 0)
                                light_sources.insert(p, true);
                }
-               
+
                // Check validity of sunlight at top of block below if it
                // hasn't already been proven invalid
                if(bottom_sunlight_valid)