Merge pull request #724 from worktycho/warningfixes
BlockEntities is warnings free
This commit is contained in:
commit
3decf7fc94
@ -126,6 +126,8 @@ void cCommandBlockEntity::SetRedstonePower(bool a_IsPowered)
|
|||||||
|
|
||||||
bool cCommandBlockEntity::Tick(float a_Dt, cChunk & a_Chunk)
|
bool cCommandBlockEntity::Tick(float a_Dt, cChunk & a_Chunk)
|
||||||
{
|
{
|
||||||
|
UNUSED(a_Dt);
|
||||||
|
UNUSED(a_Chunk);
|
||||||
if (!m_ShouldExecute)
|
if (!m_ShouldExecute)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
|
@ -129,6 +129,7 @@ void cDropSpenserEntity::SetRedstonePower(bool a_IsPowered)
|
|||||||
|
|
||||||
bool cDropSpenserEntity::Tick(float a_Dt, cChunk & a_Chunk)
|
bool cDropSpenserEntity::Tick(float a_Dt, cChunk & a_Chunk)
|
||||||
{
|
{
|
||||||
|
UNUSED(a_Dt);
|
||||||
if (!m_ShouldDropSpense)
|
if (!m_ShouldDropSpense)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
|
@ -94,6 +94,8 @@ bool cFurnaceEntity::ContinueCooking(void)
|
|||||||
|
|
||||||
bool cFurnaceEntity::Tick(float a_Dt, cChunk & a_Chunk)
|
bool cFurnaceEntity::Tick(float a_Dt, cChunk & a_Chunk)
|
||||||
{
|
{
|
||||||
|
UNUSED(a_Dt);
|
||||||
|
UNUSED(a_Chunk);
|
||||||
if (m_FuelBurnTime <= 0)
|
if (m_FuelBurnTime <= 0)
|
||||||
{
|
{
|
||||||
// No fuel is burning, reset progressbars and bail out
|
// No fuel is burning, reset progressbars and bail out
|
||||||
@ -110,7 +112,7 @@ bool cFurnaceEntity::Tick(float a_Dt, cChunk & a_Chunk)
|
|||||||
if (m_TimeCooked >= m_NeedCookTime)
|
if (m_TimeCooked >= m_NeedCookTime)
|
||||||
{
|
{
|
||||||
// Finished smelting one item
|
// Finished smelting one item
|
||||||
FinishOne(a_Chunk);
|
FinishOne();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -208,7 +210,7 @@ void cFurnaceEntity::BroadcastProgress(int a_ProgressbarID, short a_Value)
|
|||||||
|
|
||||||
|
|
||||||
/// One item finished cooking
|
/// One item finished cooking
|
||||||
void cFurnaceEntity::FinishOne(cChunk & a_Chunk)
|
void cFurnaceEntity::FinishOne()
|
||||||
{
|
{
|
||||||
m_TimeCooked = 0;
|
m_TimeCooked = 0;
|
||||||
|
|
||||||
|
@ -126,7 +126,7 @@ protected:
|
|||||||
void BroadcastProgress(int a_ProgressbarID, short a_Value);
|
void BroadcastProgress(int a_ProgressbarID, short a_Value);
|
||||||
|
|
||||||
/// One item finished cooking
|
/// One item finished cooking
|
||||||
void FinishOne(cChunk & a_Chunk);
|
void FinishOne();
|
||||||
|
|
||||||
/// Starts burning a new fuel, if possible
|
/// Starts burning a new fuel, if possible
|
||||||
void BurnNewFuel(void);
|
void BurnNewFuel(void);
|
||||||
|
@ -58,6 +58,7 @@ bool cHopperEntity::GetOutputBlockPos(NIBBLETYPE a_BlockMeta, int & a_OutputX, i
|
|||||||
|
|
||||||
bool cHopperEntity::Tick(float a_Dt, cChunk & a_Chunk)
|
bool cHopperEntity::Tick(float a_Dt, cChunk & a_Chunk)
|
||||||
{
|
{
|
||||||
|
UNUSED(a_Dt);
|
||||||
Int64 CurrentTick = a_Chunk.GetWorld()->GetWorldAge();
|
Int64 CurrentTick = a_Chunk.GetWorld()->GetWorldAge();
|
||||||
|
|
||||||
bool res = false;
|
bool res = false;
|
||||||
@ -73,6 +74,7 @@ bool cHopperEntity::Tick(float a_Dt, cChunk & a_Chunk)
|
|||||||
|
|
||||||
void cHopperEntity::SaveToJson(Json::Value & a_Value)
|
void cHopperEntity::SaveToJson(Json::Value & a_Value)
|
||||||
{
|
{
|
||||||
|
UNUSED(a_Value);
|
||||||
// TODO
|
// TODO
|
||||||
LOGWARNING("%s: Not implemented yet", __FUNCTION__);
|
LOGWARNING("%s: Not implemented yet", __FUNCTION__);
|
||||||
}
|
}
|
||||||
|
@ -21,6 +21,7 @@ cNoteEntity::cNoteEntity(int a_BlockX, int a_BlockY, int a_BlockZ, cWorld * a_Wo
|
|||||||
|
|
||||||
void cNoteEntity::UsedBy(cPlayer * a_Player)
|
void cNoteEntity::UsedBy(cPlayer * a_Player)
|
||||||
{
|
{
|
||||||
|
UNUSED(a_Player);
|
||||||
IncrementPitch();
|
IncrementPitch();
|
||||||
MakeSound();
|
MakeSound();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user