diff options
author | madmaxoft <github@xoft.cz> | 2014-07-18 22:41:48 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-07-18 22:41:48 +0200 |
commit | 23037ce7ec1f7ff290bd18f30d5fb25b91b5e61c (patch) | |
tree | cf8685a6bc506dd2cf66545cb24839cb73b77e1f /src/Blocks/BlockWallSign.h | |
parent | Removed cBlockSignPostHandler descend. (diff) | |
download | cuberite-23037ce7ec1f7ff290bd18f30d5fb25b91b5e61c.tar cuberite-23037ce7ec1f7ff290bd18f30d5fb25b91b5e61c.tar.gz cuberite-23037ce7ec1f7ff290bd18f30d5fb25b91b5e61c.tar.bz2 cuberite-23037ce7ec1f7ff290bd18f30d5fb25b91b5e61c.tar.lz cuberite-23037ce7ec1f7ff290bd18f30d5fb25b91b5e61c.tar.xz cuberite-23037ce7ec1f7ff290bd18f30d5fb25b91b5e61c.tar.zst cuberite-23037ce7ec1f7ff290bd18f30d5fb25b91b5e61c.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Blocks/BlockWallSign.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/Blocks/BlockWallSign.h b/src/Blocks/BlockWallSign.h index b0f4015b6..e837b315e 100644 --- a/src/Blocks/BlockWallSign.h +++ b/src/Blocks/BlockWallSign.h @@ -13,9 +13,10 @@ class cBlockWallSignHandler : public cBlockHandler { typedef cBlockHandler super; + public: - cBlockWallSignHandler(BLOCKTYPE a_BlockType) - : cBlockHandler(a_BlockType) + cBlockWallSignHandler(BLOCKTYPE a_BlockType) : + super(a_BlockType) { } @@ -53,15 +54,15 @@ public: } - virtual void GetBlockCoordsBehindTheSign(NIBBLETYPE a_BlockMeta, int & a_BlockX, int & a_BlockZ) + static void GetBlockCoordsBehindTheSign(NIBBLETYPE a_BlockMeta, int & a_BlockX, int & a_BlockZ) { switch (a_BlockMeta) { - case 2: a_BlockZ++; break; - case 3: a_BlockZ--; break; - case 4: a_BlockX++; break; - case 5: a_BlockX--; break; - default: break; + case 2: a_BlockZ++; break; + case 3: a_BlockZ--; break; + case 4: a_BlockX++; break; + case 5: a_BlockX--; break; + default: break; } } |