From ea2ed2c918bddf773bb8d10298016f4e5309d0b2 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Wed, 3 Oct 2012 08:52:11 +0000 Subject: Moved blockticking into blockhandler classes. Also slightly refactored the variable / argument names (BlockID is deprecated, use BlockType instead) git-svn-id: http://mc-server.googlecode.com/svn/trunk@921 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/LuaChunk.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source/LuaChunk.h') diff --git a/source/LuaChunk.h b/source/LuaChunk.h index dc6f2a0f2..c7fa071eb 100644 --- a/source/LuaChunk.h +++ b/source/LuaChunk.h @@ -30,16 +30,16 @@ public: //tolua_begin // Block functions - void FillBlocks( char a_BlockID, unsigned char a_BlockMeta ) + void FillBlocks( char a_BlockType, unsigned char a_BlockMeta ) { const NIBBLETYPE CompressedMeta = a_BlockMeta | a_BlockMeta << 4; - memset( m_BlockTypes, a_BlockID, sizeof( cChunkDef::BlockTypes ) ); + memset( m_BlockTypes, a_BlockType, sizeof( cChunkDef::BlockTypes ) ); memset( m_BlockMeta, CompressedMeta, sizeof( cChunkDef::BlockNibbles ) ); } - void SetBlock( int a_X, int a_Y, int a_Z, char a_BlockID, unsigned char a_BlockMeta ) + void SetBlock( int a_X, int a_Y, int a_Z, char a_BlockType, unsigned char a_BlockMeta ) { - cChunkDef::SetBlock( m_BlockTypes, a_X, a_Y, a_Z, a_BlockID ); + cChunkDef::SetBlock( m_BlockTypes, a_X, a_Y, a_Z, a_BlockType ); cChunkDef::SetNibble( m_BlockMeta, a_X, a_Y, a_Z, a_BlockMeta ); } -- cgit v1.2.3