From d3d369a63b25be74f14b58ebda0d40b39d8da6ab Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sun, 26 Jun 2011 18:51:57 +0300 Subject: reorganized stuff --- src/map.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'src/map.cpp') diff --git a/src/map.cpp b/src/map.cpp index a20cd9910..5bf278667 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -755,6 +755,25 @@ void Map::updateLighting(enum LightBank bank, } } + + /* + Enable this to disable proper lighting for speeding up map + generation for testing or whatever + */ +#if 0 + //if(g_settings.get("")) + { + core::map::Iterator i; + i = blocks_to_update.getIterator(); + for(; i.atEnd() == false; i++) + { + MapBlock *block = i.getNode()->getValue(); + v3s16 p = block->getPos(); + block->setLightingExpired(false); + } + return; + } +#endif #if 0 { -- cgit v1.2.3