diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-10-03 10:52:11 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-10-03 10:52:11 +0200 |
commit | ea2ed2c918bddf773bb8d10298016f4e5309d0b2 (patch) | |
tree | 129848747361501cbc2e330e1a33b7f8089f51b2 /source/FireSimulator.cpp | |
parent | sTick: Updated the plugin to work with current code (diff) | |
download | cuberite-ea2ed2c918bddf773bb8d10298016f4e5309d0b2.tar cuberite-ea2ed2c918bddf773bb8d10298016f4e5309d0b2.tar.gz cuberite-ea2ed2c918bddf773bb8d10298016f4e5309d0b2.tar.bz2 cuberite-ea2ed2c918bddf773bb8d10298016f4e5309d0b2.tar.lz cuberite-ea2ed2c918bddf773bb8d10298016f4e5309d0b2.tar.xz cuberite-ea2ed2c918bddf773bb8d10298016f4e5309d0b2.tar.zst cuberite-ea2ed2c918bddf773bb8d10298016f4e5309d0b2.zip |
Diffstat (limited to 'source/FireSimulator.cpp')
-rw-r--r-- | source/FireSimulator.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/source/FireSimulator.cpp b/source/FireSimulator.cpp index 662c4f2d0..1dc104d0c 100644 --- a/source/FireSimulator.cpp +++ b/source/FireSimulator.cpp @@ -48,10 +48,10 @@ void cFireSimulator::Simulate( float a_Dt ) } -bool cFireSimulator::IsAllowedBlock( BLOCKTYPE a_BlockID ) +bool cFireSimulator::IsAllowedBlock( BLOCKTYPE a_BlockType ) { - return a_BlockID == E_BLOCK_FIRE - || IsBlockLava(a_BlockID); + return a_BlockType == E_BLOCK_FIRE + || IsBlockLava(a_BlockType); } void cFireSimulator::AddBlock(int a_X, int a_Y, int a_Z) @@ -78,26 +78,26 @@ void cFireSimulator::_AddBlock(int a_X, int a_Y, int a_Z) } -bool cFireSimulator::IsForeverBurnable( BLOCKTYPE a_BlockID ) +bool cFireSimulator::IsForeverBurnable( BLOCKTYPE a_BlockType ) { - return a_BlockID == E_BLOCK_BLOODSTONE; + return a_BlockType == E_BLOCK_BLOODSTONE; } -bool cFireSimulator::IsBurnable( BLOCKTYPE a_BlockID ) +bool cFireSimulator::IsBurnable( BLOCKTYPE a_BlockType ) { - return a_BlockID == E_BLOCK_PLANKS - || a_BlockID == E_BLOCK_LEAVES - || a_BlockID == E_BLOCK_LOG - || a_BlockID == E_BLOCK_WOOL - || a_BlockID == E_BLOCK_BOOKCASE - || a_BlockID == E_BLOCK_FENCE - || a_BlockID == E_BLOCK_TNT - || a_BlockID == E_BLOCK_VINES; + return a_BlockType == E_BLOCK_PLANKS + || a_BlockType == E_BLOCK_LEAVES + || a_BlockType == E_BLOCK_LOG + || a_BlockType == E_BLOCK_WOOL + || a_BlockType == E_BLOCK_BOOKCASE + || a_BlockType == E_BLOCK_FENCE + || a_BlockType == E_BLOCK_TNT + || a_BlockType == E_BLOCK_VINES; } -bool cFireSimulator::FiresForever( BLOCKTYPE a_BlockID ) +bool cFireSimulator::FiresForever( BLOCKTYPE a_BlockType ) { - return a_BlockID != E_BLOCK_FIRE; + return a_BlockType != E_BLOCK_FIRE; } bool cFireSimulator::BurnBlockAround(int a_X, int a_Y, int a_Z) |