1
0

Fixed a few Clang warnings in BlockHandlers.

This commit is contained in:
madmaxoft
2014-03-30 23:13:13 +02:00
parent a5c0600e6c
commit 8288e53c0b
11 changed files with 54 additions and 48 deletions

View File

@@ -33,16 +33,16 @@ public:
a_BlockType = m_BlockType;
int Direction = (int)floor(a_Player->GetYaw() * 4.0 / 360.0 + 0.5) & 0x3;
int RawMeta = a_BlockMeta >> 2;
NIBBLETYPE RawMeta = a_BlockMeta >> 2;
Direction++;
Direction %= 4;
switch (Direction)
{
case 0: a_BlockMeta = 0x2 | RawMeta << 2; break;
case 1: a_BlockMeta = 0x3 | RawMeta << 2; break;
case 2: a_BlockMeta = 0x0 | RawMeta << 2; break;
case 3: a_BlockMeta = 0x1 | RawMeta << 2; break;
case 0: a_BlockMeta = 0x2 | (RawMeta << 2); break;
case 1: a_BlockMeta = 0x3 | (RawMeta << 2); break;
case 2: a_BlockMeta = 0x0 | (RawMeta << 2); break;
case 3: a_BlockMeta = 0x1 | (RawMeta << 2); break;
default:
{
return false;