From b8041509e5bca0d97bd6f2291a272a24da05b919 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Tue, 13 Mar 2012 20:26:36 +0000 Subject: Small optimizations in the SetNibble() and GetNibble() functions; removed unused lighting functions from cChunk git-svn-id: http://mc-server.googlecode.com/svn/trunk@408 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cChunk.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'source/cChunk.h') diff --git a/source/cChunk.h b/source/cChunk.h index 55210a064..1018936f2 100644 --- a/source/cChunk.h +++ b/source/cChunk.h @@ -239,6 +239,7 @@ public: inline static unsigned int MakeIndexNoCheck(int x, int y, int z) { #if AXIS_ORDER == AXIS_ORDER_XZY + // For some reason, NOT using the Horner schema is faster. Weird. return x + (z * c_ChunkWidth) + (y * c_ChunkWidth * c_ChunkWidth); // 1.2 is XZY #elif AXIS_ORDER == AXIS_ORDER_YZX return y + (z * c_ChunkHeight) + (x * c_ChunkHeight * c_ChunkWidth); // 1.1 is YZX @@ -313,9 +314,6 @@ private: cBlockEntity * GetBlockEntity( const Vector3i & a_BlockPos ) { return GetBlockEntity( a_BlockPos.x, a_BlockPos.y, a_BlockPos.z ); } void SpreadLightOfBlock(char* a_LightBuffer, int a_X, int a_Y, int a_Z, char a_Falloff); - void SpreadLightOfBlockX(char* a_LightBuffer, int a_X, int a_Y, int a_Z); - void SpreadLightOfBlockY(char* a_LightBuffer, int a_X, int a_Y, int a_Z); - void SpreadLightOfBlockZ(char* a_LightBuffer, int a_X, int a_Y, int a_Z); void CreateBlockEntities(void); -- cgit v1.2.3