diff options
author | madmaxoft <github@xoft.cz> | 2013-09-15 20:49:08 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-09-15 20:49:08 +0200 |
commit | 5cde7d8a29b38360ae36f9e8c5210bee07fce612 (patch) | |
tree | 816bbb5c99b9ac3ce64920ccc9e6abd88519c022 /source/Entities/Minecart.h | |
parent | Merge branch 'bugfixes' of git://github.com/tigerw/MCServer into tigerw-bugfixes (diff) | |
parent | Added break (diff) | |
download | cuberite-5cde7d8a29b38360ae36f9e8c5210bee07fce612.tar cuberite-5cde7d8a29b38360ae36f9e8c5210bee07fce612.tar.gz cuberite-5cde7d8a29b38360ae36f9e8c5210bee07fce612.tar.bz2 cuberite-5cde7d8a29b38360ae36f9e8c5210bee07fce612.tar.lz cuberite-5cde7d8a29b38360ae36f9e8c5210bee07fce612.tar.xz cuberite-5cde7d8a29b38360ae36f9e8c5210bee07fce612.tar.zst cuberite-5cde7d8a29b38360ae36f9e8c5210bee07fce612.zip |
Diffstat (limited to 'source/Entities/Minecart.h')
-rw-r--r-- | source/Entities/Minecart.h | 14 |
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 { |