summaryrefslogtreecommitdiffstats
path: root/src/Defines.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-01-19 15:52:45 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-01-19 15:52:45 +0100
commit8467f5dfaea596a0b7e294cf1b7dce224c41d7b9 (patch)
tree7e8579f17f71a22a5bc957a9712b629c55c870cc /src/Defines.h
parentMerge remote-tracking branch 'origin/master' into minecartimprovements (diff)
downloadcuberite-8467f5dfaea596a0b7e294cf1b7dce224c41d7b9.tar
cuberite-8467f5dfaea596a0b7e294cf1b7dce224c41d7b9.tar.gz
cuberite-8467f5dfaea596a0b7e294cf1b7dce224c41d7b9.tar.bz2
cuberite-8467f5dfaea596a0b7e294cf1b7dce224c41d7b9.tar.lz
cuberite-8467f5dfaea596a0b7e294cf1b7dce224c41d7b9.tar.xz
cuberite-8467f5dfaea596a0b7e294cf1b7dce224c41d7b9.tar.zst
cuberite-8467f5dfaea596a0b7e294cf1b7dce224c41d7b9.zip
Diffstat (limited to '')
-rw-r--r--src/Defines.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/Defines.h b/src/Defines.h
index 7a86f499e..298180fb1 100644
--- a/src/Defines.h
+++ b/src/Defines.h
@@ -282,6 +282,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)
{