summaryrefslogtreecommitdiffstats
path: root/source/cWorld.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-07-02 18:30:17 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-07-02 18:30:17 +0200
commitbf13084f1fa8560d8eda8551b74755b543c1fdd4 (patch)
treebed9baa364fdea24501049216c8867c897784242 /source/cWorld.cpp
parentPatch from STR_Warrior, OreNest counts adjustment (diff)
downloadcuberite-bf13084f1fa8560d8eda8551b74755b543c1fdd4.tar
cuberite-bf13084f1fa8560d8eda8551b74755b543c1fdd4.tar.gz
cuberite-bf13084f1fa8560d8eda8551b74755b543c1fdd4.tar.bz2
cuberite-bf13084f1fa8560d8eda8551b74755b543c1fdd4.tar.lz
cuberite-bf13084f1fa8560d8eda8551b74755b543c1fdd4.tar.xz
cuberite-bf13084f1fa8560d8eda8551b74755b543c1fdd4.tar.zst
cuberite-bf13084f1fa8560d8eda8551b74755b543c1fdd4.zip
Diffstat (limited to 'source/cWorld.cpp')
-rw-r--r--source/cWorld.cpp11
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...");