diff options
Diffstat (limited to 'source/cWorld.cpp')
-rw-r--r-- | source/cWorld.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/source/cWorld.cpp b/source/cWorld.cpp index 2c732df7f..c2a943493 100644 --- a/source/cWorld.cpp +++ b/source/cWorld.cpp @@ -50,8 +50,6 @@ #include "Vector3d.h" -#include <time.h> - #include "tolua++.h" #ifndef _WIN32 @@ -1819,6 +1817,15 @@ bool cWorld::IsChunkLighted(int a_ChunkX, int a_ChunkZ) +bool cWorld::ForEachChunkInRect(int a_MinChunkX, int a_MaxChunkX, int a_MinChunkZ, int a_MaxChunkZ, cChunkDataCallback & a_Callback) +{ + return m_ChunkMap->ForEachChunkInRect(a_MinChunkX, a_MaxChunkX, a_MinChunkZ, a_MaxChunkZ, a_Callback); +} + + + + + void cWorld::SaveAllChunks(void) { LOG("Saving all chunks..."); |