Chunk is now warnings clean
This commit is contained in:
parent
3289abde73
commit
b3046a09e5
@ -71,7 +71,7 @@ protected:
|
||||
cItemGrid m_Contents;
|
||||
|
||||
// cItemGrid::cListener overrides:
|
||||
virtual void OnSlotChanged(cItemGrid * a_Grid, int a_SlotNum)
|
||||
virtual void OnSlotChanged(cItemGrid * a_Grid, int /*a_SlotNum*/)
|
||||
{
|
||||
ASSERT(a_Grid == &m_Contents);
|
||||
if (m_World != NULL)
|
||||
|
@ -45,7 +45,7 @@ public:
|
||||
// tolua_end
|
||||
|
||||
virtual void UsedBy(cPlayer * a_Player) override;
|
||||
virtual void SendTo(cClientHandle & a_Client) override { };
|
||||
virtual void SendTo(cClientHandle &) override { };
|
||||
|
||||
private:
|
||||
int m_Record;
|
||||
|
@ -52,7 +52,7 @@ public:
|
||||
// tolua_end
|
||||
|
||||
virtual void UsedBy(cPlayer * a_Player) override;
|
||||
virtual void SendTo(cClientHandle & a_Client) override { };
|
||||
virtual void SendTo(cClientHandle &) override { };
|
||||
|
||||
private:
|
||||
char m_Pitch;
|
||||
|
@ -527,9 +527,9 @@ void cChunk::SpawnMobs(cMobSpawner& a_MobSpawner)
|
||||
|
||||
// MG TODO : check that "Level" really means Y
|
||||
|
||||
NIBBLETYPE SkyLight = 0;
|
||||
/*NIBBLETYPE SkyLight = 0;
|
||||
|
||||
NIBBLETYPE BlockLight = 0;
|
||||
NIBBLETYPE BlockLight = 0;*/
|
||||
|
||||
if (IsLightValid())
|
||||
{
|
||||
@ -2323,7 +2323,6 @@ BLOCKTYPE cChunk::GetBlock(int a_BlockIdx) const
|
||||
|
||||
void cChunk::GetBlockTypeMeta(int a_RelX, int a_RelY, int a_RelZ, BLOCKTYPE & a_BlockType, NIBBLETYPE & a_BlockMeta)
|
||||
{
|
||||
int Idx = cChunkDef::MakeIndexNoCheck(a_RelX, a_RelY, a_RelZ);
|
||||
a_BlockType = cChunkDef::GetBlock (m_BlockTypes, a_RelX, a_RelY, a_RelZ);
|
||||
a_BlockMeta = cChunkDef::GetNibble(m_BlockMeta, a_RelX, a_RelY, a_RelZ);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user