1
0

Made some functions in cChunk and cNoise inline, this should significantly increase chunk generation speed

git-svn-id: http://mc-server.googlecode.com/svn/trunk@115 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
faketruth
2011-12-26 02:13:40 +00:00
parent 4c76ca986c
commit c35db25269
9 changed files with 108 additions and 73 deletions

View File

@@ -448,13 +448,6 @@ void cChunk::CreateBlockEntities()
}
}
unsigned int cChunk::MakeIndex(int x, int y, int z )
{
if( x < 16 && x > -1 && y < 128 && y > -1 && z < 16 && z > -1 )
return y + (z * 128) + (x * 128 * 16);
return 0;
}
char cChunk::GetLight(char* a_Buffer, int a_BlockIdx)
{
if( a_BlockIdx > -1 && a_BlockIdx < c_NumBlocks )