summaryrefslogtreecommitdiffstats
path: root/source/cWorld.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-03-14 22:21:03 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-03-14 22:21:03 +0100
commitb974b1ea59efac4a14a929b917df152d06487201 (patch)
treee23c97a10cfde99c7ddcaa0960e459d8e9caaf16 /source/cWorld.cpp
parentAdded the new ChunkDef.h into VC2010 project (diff)
downloadcuberite-b974b1ea59efac4a14a929b917df152d06487201.tar
cuberite-b974b1ea59efac4a14a929b917df152d06487201.tar.gz
cuberite-b974b1ea59efac4a14a929b917df152d06487201.tar.bz2
cuberite-b974b1ea59efac4a14a929b917df152d06487201.tar.lz
cuberite-b974b1ea59efac4a14a929b917df152d06487201.tar.xz
cuberite-b974b1ea59efac4a14a929b917df152d06487201.tar.zst
cuberite-b974b1ea59efac4a14a929b917df152d06487201.zip
Diffstat (limited to '')
-rw-r--r--source/cWorld.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/source/cWorld.cpp b/source/cWorld.cpp
index 9abcac4f7..bb5fbfdeb 100644
--- a/source/cWorld.cpp
+++ b/source/cWorld.cpp
@@ -182,6 +182,21 @@ cWorld::cWorld( const AString & a_WorldName )
, m_RSList ( 0 )
, m_Weather ( eWeather_Sunny )
{
+ /*
+ // DEBUG:
+ DWORD Tick = GetTickCount();
+ for (int i = 0; i < 3000; i++)
+ {
+ BLOCKTYPE Playground[cChunkDef::NumBlocks / 2];
+ for (int x = 0; x < 16; x++) for (int z = 0; z < 16; z++) for (int y = 0; y < 256; y++)
+ {
+ cChunkDef::SetNibble(Playground, x, y, z, x);
+ } // for x, y, z
+ } // for i
+ Tick = GetTickCount() - Tick;
+ LOGINFO("3000 chunkfulls of SetNibble() took %d ticks", Tick);
+ //*/
+
LOG("cWorld::cWorld(%s)", a_WorldName.c_str());
m_WorldName = a_WorldName;
m_IniFileName = m_WorldName + "/world.ini";