summaryrefslogtreecommitdiffstats
path: root/source/SandSimulator.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-10-03 10:52:11 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-10-03 10:52:11 +0200
commitea2ed2c918bddf773bb8d10298016f4e5309d0b2 (patch)
tree129848747361501cbc2e330e1a33b7f8089f51b2 /source/SandSimulator.cpp
parentsTick: Updated the plugin to work with current code (diff)
downloadcuberite-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 '')
-rw-r--r--source/SandSimulator.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/source/SandSimulator.cpp b/source/SandSimulator.cpp
index f8cfdad37..a2e1dc4cb 100644
--- a/source/SandSimulator.cpp
+++ b/source/SandSimulator.cpp
@@ -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;
}