diff options
author | Mattes D <github@xoft.cz> | 2014-01-26 14:13:54 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-01-26 14:13:54 +0100 |
commit | 09ee8a1bb66106823bf16b658b9942a9ec936db9 (patch) | |
tree | 4bf5ee54c2b13adc1582d4c4af85088d0a6831d7 /src/Defines.h | |
parent | Merge pull request #590 from mc-server/Wolf_Fix (diff) | |
parent | Reduced unnecessary echoes (thanks xoft) (diff) | |
download | cuberite-09ee8a1bb66106823bf16b658b9942a9ec936db9.tar cuberite-09ee8a1bb66106823bf16b658b9942a9ec936db9.tar.gz cuberite-09ee8a1bb66106823bf16b658b9942a9ec936db9.tar.bz2 cuberite-09ee8a1bb66106823bf16b658b9942a9ec936db9.tar.lz cuberite-09ee8a1bb66106823bf16b658b9942a9ec936db9.tar.xz cuberite-09ee8a1bb66106823bf16b658b9942a9ec936db9.tar.zst cuberite-09ee8a1bb66106823bf16b658b9942a9ec936db9.zip |
Diffstat (limited to 'src/Defines.h')
-rw-r--r-- | src/Defines.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/Defines.h b/src/Defines.h index 0dcc3214a..3a26f4be6 100644 --- a/src/Defines.h +++ b/src/Defines.h @@ -280,6 +280,24 @@ inline bool IsBlockLiquid(BLOCKTYPE a_BlockType) +inline bool IsBlockRail(BLOCKTYPE a_BlockType) +{ + switch (a_BlockType) + { + case E_BLOCK_RAIL: + case E_BLOCK_ACTIVATOR_RAIL: + case E_BLOCK_DETECTOR_RAIL: + case E_BLOCK_POWERED_RAIL: + { + return true; + } + default: return false; + } +} + + + + inline bool IsBlockTypeOfDirt(BLOCKTYPE a_BlockType) { |