From 3ee523628465a59070354781cda6585f6778192c Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Tue, 4 Jun 2013 19:22:14 +0000 Subject: Removed cLadder, cSign, cStairs, cTorch and cVine classes, moved their functionality into the appropriate BlockHandlers / ItemHandlers git-svn-id: http://mc-server.googlecode.com/svn/trunk@1555 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Blocks/BlockBed.h | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) (limited to 'source/Blocks/BlockBed.h') diff --git a/source/Blocks/BlockBed.h b/source/Blocks/BlockBed.h index ab55ffc92..bf8906750 100644 --- a/source/Blocks/BlockBed.h +++ b/source/Blocks/BlockBed.h @@ -3,7 +3,6 @@ #include "BlockHandler.h" #include "../World.h" -#include "../Sign.h" #include "../Player.h" @@ -44,13 +43,11 @@ public: } - - // Bed specific helper functions static NIBBLETYPE RotationToMetaData(double a_Rotation) { - a_Rotation += 180 + (180/4); // So its not aligned with axis - if( a_Rotation > 360 ) a_Rotation -= 360; + a_Rotation += 180 + (180 / 4); // So its not aligned with axis + if (a_Rotation > 360) a_Rotation -= 360; a_Rotation = (a_Rotation / 360) * 4; @@ -62,15 +59,11 @@ public: { switch (a_MetaData) { - case 0: // south +z - return Vector3i(0, 0, 1); - case 1: // west -x - return Vector3i(-1, 0, 0); - case 2: // north -z - return Vector3i(0, 0, -1); - case 3: // east +x - return Vector3i(1, 0, 0); - }; + case 0: return Vector3i(0, 0, 1); + case 1: return Vector3i(-1, 0, 0); + case 2: return Vector3i(0, 0, -1); + case 3: return Vector3i(1, 0, 0); + } return Vector3i(); } } ; -- cgit v1.2.3