From b974b1ea59efac4a14a929b917df152d06487201 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Wed, 14 Mar 2012 21:21:03 +0000 Subject: Unified the chunk data to use the BLOCKDATA datatype. git-svn-id: http://mc-server.googlecode.com/svn/trunk@413 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cWorld.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'source/cWorld.cpp') 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"; -- cgit v1.2.3