reorganized stuff
parent
af6860f6f4
commit
d3d369a63b
|
@ -427,6 +427,7 @@ TODO: Use MapBlock::resetUsageTimer() in appropriate places
|
|||
#include "materials.h"
|
||||
#include "game.h"
|
||||
#include "keycode.h"
|
||||
#include "tile.h"
|
||||
|
||||
// This makes textures
|
||||
ITextureSource *g_texturesource = NULL;
|
||||
|
|
|
@ -25,7 +25,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
extern Settings g_settings;
|
||||
|
||||
// This makes and maps textures
|
||||
#include "tile.h"
|
||||
class ITextureSource;
|
||||
extern ITextureSource *g_texturesource;
|
||||
|
||||
// Global profiler
|
||||
|
|
19
src/map.cpp
19
src/map.cpp
|
@ -756,6 +756,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<v3s16, MapBlock*>::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
|
||||
{
|
||||
TimeTaker timer("unspreadLight");
|
||||
|
|
|
@ -21,7 +21,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
#define MINERAL_HEADER
|
||||
|
||||
#include "inventory.h"
|
||||
#include "tile.h"
|
||||
|
||||
/*
|
||||
Minerals
|
||||
|
|
Loading…
Reference in New Issue