summaryrefslogtreecommitdiffstats
path: root/src/Chunk.inl.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-12-30 17:41:59 +0100
committermadmaxoft <github@xoft.cz>2013-12-30 17:41:59 +0100
commitee15d4e08e90536afbb381a6d65a418e0027658d (patch)
tree6ac904913525ac4339d05693f4da6aa12cc8ef9e /src/Chunk.inl.h
parentconverted commneted paramater names to the unused macro (diff)
downloadcuberite-ee15d4e08e90536afbb381a6d65a418e0027658d.tar
cuberite-ee15d4e08e90536afbb381a6d65a418e0027658d.tar.gz
cuberite-ee15d4e08e90536afbb381a6d65a418e0027658d.tar.bz2
cuberite-ee15d4e08e90536afbb381a6d65a418e0027658d.tar.lz
cuberite-ee15d4e08e90536afbb381a6d65a418e0027658d.tar.xz
cuberite-ee15d4e08e90536afbb381a6d65a418e0027658d.tar.zst
cuberite-ee15d4e08e90536afbb381a6d65a418e0027658d.zip
Diffstat (limited to '')
-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
-
-
-
-