From 0d8ecbeca1a93acab395326db3e90f444c8bbc18 Mon Sep 17 00:00:00 2001 From: faketruth Date: Mon, 26 Dec 2011 23:23:05 +0000 Subject: Some kind of 'template' world generator that right now just generates an all dirt world. You can use this to test new algorithms git-svn-id: http://mc-server.googlecode.com/svn/trunk@127 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cChunk.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/cChunk.cpp') diff --git a/source/cChunk.cpp b/source/cChunk.cpp index 2c915d2ef..2e6e7a633 100644 --- a/source/cChunk.cpp +++ b/source/cChunk.cpp @@ -1,3 +1,4 @@ + #ifndef _WIN32 #include #include @@ -133,8 +134,7 @@ void cChunk::Initialize() // Clear memory memset( m_BlockData, 0x00, c_BlockDataSize ); - cWorldGenerator Generator; - Generator.GenerateChunk( this ); + m_World->GetWorldGenerator()->GenerateChunk( this ); CalculateHeightmap(); CalculateLighting(); -- cgit v1.2.3