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
This commit is contained in:
@@ -61,10 +61,10 @@ void cSandSimulator::Simulate( float a_Dt )
|
||||
|
||||
|
||||
|
||||
bool cSandSimulator::IsAllowedBlock( BLOCKTYPE a_BlockID )
|
||||
bool cSandSimulator::IsAllowedBlock( BLOCKTYPE a_BlockType )
|
||||
{
|
||||
return a_BlockID == E_BLOCK_SAND
|
||||
|| a_BlockID == E_BLOCK_GRAVEL;
|
||||
return a_BlockType == E_BLOCK_SAND
|
||||
|| a_BlockType == E_BLOCK_GRAVEL;
|
||||
}
|
||||
|
||||
|
||||
@@ -93,10 +93,10 @@ void cSandSimulator::AddBlock(int a_X, int a_Y, int a_Z)
|
||||
|
||||
|
||||
|
||||
bool cSandSimulator::IsPassable( BLOCKTYPE a_BlockID )
|
||||
bool cSandSimulator::IsPassable( BLOCKTYPE a_BlockType )
|
||||
{
|
||||
return a_BlockID == E_BLOCK_AIR
|
||||
|| IsBlockWater(a_BlockID)
|
||||
|| IsBlockLava(a_BlockID)
|
||||
|| a_BlockID == E_BLOCK_FIRE;
|
||||
return a_BlockType == E_BLOCK_AIR
|
||||
|| IsBlockWater(a_BlockType)
|
||||
|| IsBlockLava(a_BlockType)
|
||||
|| a_BlockType == E_BLOCK_FIRE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user