1
0

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:
madmaxoft@gmail.com
2012-10-03 08:52:11 +00:00
parent 9fa165488b
commit ea2ed2c918
75 changed files with 681 additions and 547 deletions

View File

@@ -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;
}