summaryrefslogtreecommitdiffstats
path: root/source/Entities/Minecart.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2013-09-13 00:57:02 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2013-09-13 00:57:02 +0200
commit22b8f3a2e0d46b36658fd46fc3e14af85b9dfe45 (patch)
treece3313ef732b7e0c6e15d9ee0982432a4fd845f6 /source/Entities/Minecart.h
parentFixed water speed issues (diff)
downloadcuberite-22b8f3a2e0d46b36658fd46fc3e14af85b9dfe45.tar
cuberite-22b8f3a2e0d46b36658fd46fc3e14af85b9dfe45.tar.gz
cuberite-22b8f3a2e0d46b36658fd46fc3e14af85b9dfe45.tar.bz2
cuberite-22b8f3a2e0d46b36658fd46fc3e14af85b9dfe45.tar.lz
cuberite-22b8f3a2e0d46b36658fd46fc3e14af85b9dfe45.tar.xz
cuberite-22b8f3a2e0d46b36658fd46fc3e14af85b9dfe45.tar.zst
cuberite-22b8f3a2e0d46b36658fd46fc3e14af85b9dfe45.zip
Diffstat (limited to 'source/Entities/Minecart.h')
-rw-r--r--source/Entities/Minecart.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/source/Entities/Minecart.h b/source/Entities/Minecart.h
index f98b02bb5..0ca6586db 100644
--- a/source/Entities/Minecart.h
+++ b/source/Entities/Minecart.h
@@ -16,6 +16,20 @@
+inline bool IsBlockRail(BLOCKTYPE a_BlockType)
+ {
+ return (
+ (a_BlockType == E_BLOCK_RAIL) ||
+ (a_BlockType == E_BLOCK_ACTIVATOR_RAIL) ||
+ (a_BlockType == E_BLOCK_DETECTOR_RAIL) ||
+ (a_BlockType == E_BLOCK_POWERED_RAIL)
+ ) ;
+ }
+
+
+
+
+
class cMinecart :
public cEntity
{