diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-03-13 21:26:36 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-03-13 21:26:36 +0100 |
commit | b8041509e5bca0d97bd6f2291a272a24da05b919 (patch) | |
tree | e5991f0ab9d1751a6921a3c9924eb1804c0e6732 /source/cChunk.h | |
parent | Fixed a few warnings, lifted up the block interactinos limit to 20 (10 was not enough for Creative mode) (diff) | |
download | cuberite-b8041509e5bca0d97bd6f2291a272a24da05b919.tar cuberite-b8041509e5bca0d97bd6f2291a272a24da05b919.tar.gz cuberite-b8041509e5bca0d97bd6f2291a272a24da05b919.tar.bz2 cuberite-b8041509e5bca0d97bd6f2291a272a24da05b919.tar.lz cuberite-b8041509e5bca0d97bd6f2291a272a24da05b919.tar.xz cuberite-b8041509e5bca0d97bd6f2291a272a24da05b919.tar.zst cuberite-b8041509e5bca0d97bd6f2291a272a24da05b919.zip |
Diffstat (limited to 'source/cChunk.h')
-rw-r--r-- | source/cChunk.h | 4 |
1 files changed, 1 insertions, 3 deletions
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);
|