summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockWallSign.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-07-18 22:41:48 +0200
committermadmaxoft <github@xoft.cz>2014-07-18 22:41:48 +0200
commit23037ce7ec1f7ff290bd18f30d5fb25b91b5e61c (patch)
treecf8685a6bc506dd2cf66545cb24839cb73b77e1f /src/Blocks/BlockWallSign.h
parentRemoved cBlockSignPostHandler descend. (diff)
downloadcuberite-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.h17
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;
}
}