summaryrefslogtreecommitdiffstats
path: root/src/Chunk.inl.h
diff options
context:
space:
mode:
authorTycho Bickerstaff <work.tycho@gmail.com>2013-12-31 16:53:17 +0100
committerTycho Bickerstaff <work.tycho@gmail.com>2013-12-31 16:53:17 +0100
commit18fb814c3487231410b96cf237d4cc488e964f87 (patch)
tree7f846df7669175e4a5d5276c81ad3c16f96f29c4 /src/Chunk.inl.h
parentrefactored chunk Queue to seperate class (diff)
parentremoved unneccisary cast (diff)
downloadcuberite-18fb814c3487231410b96cf237d4cc488e964f87.tar
cuberite-18fb814c3487231410b96cf237d4cc488e964f87.tar.gz
cuberite-18fb814c3487231410b96cf237d4cc488e964f87.tar.bz2
cuberite-18fb814c3487231410b96cf237d4cc488e964f87.tar.lz
cuberite-18fb814c3487231410b96cf237d4cc488e964f87.tar.xz
cuberite-18fb814c3487231410b96cf237d4cc488e964f87.tar.zst
cuberite-18fb814c3487231410b96cf237d4cc488e964f87.zip
Diffstat (limited to 'src/Chunk.inl.h')
-rw-r--r--src/Chunk.inl.h34
1 files changed, 0 insertions, 34 deletions
diff --git a/src/Chunk.inl.h b/src/Chunk.inl.h
deleted file mode 100644
index fb9c4dad1..000000000
--- a/src/Chunk.inl.h
+++ /dev/null
@@ -1,34 +0,0 @@
-
-#ifndef __C_CHUNK_INL_H__
-#define __C_CHUNK_INL_H__
-
-#ifndef MAX
-# define MAX(a,b) (((a)>(b))?(a):(b))
-#endif
-
-
-
-
-
-__C_CHUNK_INLINE__
-void cChunk::SpreadLightOfBlock(NIBBLETYPE * a_LightBuffer, int a_X, int a_Y, int a_Z, char a_Falloff)
-{
- unsigned char CurrentLight = cChunkDef::GetNibble( a_LightBuffer, a_X, a_Y, a_Z );
- cChunkDef::SetNibble( a_LightBuffer, a_X-1, a_Y, a_Z, MAX(cChunkDef::GetNibble( a_LightBuffer, a_X-1, a_Y, a_Z ), MAX(0,CurrentLight-a_Falloff) ) );
- cChunkDef::SetNibble( a_LightBuffer, a_X+1, a_Y, a_Z, MAX(cChunkDef::GetNibble( a_LightBuffer, a_X+1, a_Y, a_Z ), MAX(0,CurrentLight-a_Falloff) ) );
- cChunkDef::SetNibble( a_LightBuffer, a_X, a_Y-1, a_Z, MAX(cChunkDef::GetNibble( a_LightBuffer, a_X, a_Y-1, a_Z ), MAX(0,CurrentLight-a_Falloff) ) );
- cChunkDef::SetNibble( a_LightBuffer, a_X, a_Y+1, a_Z, MAX(cChunkDef::GetNibble( a_LightBuffer, a_X, a_Y+1, a_Z ), MAX(0,CurrentLight-a_Falloff) ) );
- cChunkDef::SetNibble( a_LightBuffer, a_X, a_Y, a_Z-1, MAX(cChunkDef::GetNibble( a_LightBuffer, a_X, a_Y, a_Z-1 ), MAX(0,CurrentLight-a_Falloff) ) );
- cChunkDef::SetNibble( a_LightBuffer, a_X, a_Y, a_Z+1, MAX(cChunkDef::GetNibble( a_LightBuffer, a_X, a_Y, a_Z+1 ), MAX(0,CurrentLight-a_Falloff) ) );
- MarkDirty();
-}
-
-
-
-
-
-#endif
-
-
-
-