Fix a few warnings
This commit is contained in:
parent
c0bc4a9d3a
commit
84c83e0deb
@ -156,10 +156,10 @@ public:
|
|||||||
if (a_BlockX > 0)
|
if (a_BlockX > 0)
|
||||||
{
|
{
|
||||||
NIBBLETYPE DownMeta = a_ChunkInterface.GetBlockMeta(a_BlockX, a_BlockY - 1, a_BlockZ);
|
NIBBLETYPE DownMeta = a_ChunkInterface.GetBlockMeta(a_BlockX, a_BlockY - 1, a_BlockZ);
|
||||||
return (DownMeta & 0x07) | 0x08 | (Meta << 4);
|
return (NIBBLETYPE) ((DownMeta & 0x07) | 0x08 | (Meta << 4));
|
||||||
}
|
}
|
||||||
// This is the top part of the door at the bottommost layer of the world, there's no bottom:
|
// This is the top part of the door at the bottommost layer of the world, there's no bottom:
|
||||||
return 0x08 | (Meta << 4);
|
return (NIBBLETYPE) (0x08 | (Meta << 4));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -167,7 +167,7 @@ public:
|
|||||||
if (a_BlockY < cChunkDef::Height - 1)
|
if (a_BlockY < cChunkDef::Height - 1)
|
||||||
{
|
{
|
||||||
NIBBLETYPE UpMeta = a_ChunkInterface.GetBlockMeta(a_BlockX, a_BlockY + 1, a_BlockZ);
|
NIBBLETYPE UpMeta = a_ChunkInterface.GetBlockMeta(a_BlockX, a_BlockY + 1, a_BlockZ);
|
||||||
return Meta | (UpMeta << 4);
|
return (NIBBLETYPE) (Meta | (UpMeta << 4));
|
||||||
}
|
}
|
||||||
// This is the bottom part of the door at the topmost layer of the world, there's no top:
|
// This is the bottom part of the door at the topmost layer of the world, there's no top:
|
||||||
return Meta;
|
return Meta;
|
||||||
|
Loading…
Reference in New Issue
Block a user