1
0

Fixed style issues

This commit is contained in:
Tycho 2014-08-06 13:19:22 +01:00
parent a0ba7426c6
commit 6acddd0cad
3 changed files with 8 additions and 5 deletions

View File

@ -61,7 +61,10 @@ public:
virtual void SetRedstonePower(bool a_Value)
{
if (a_Value) MakeSound();
if (a_Value)
{
MakeSound();
}
}
static const char * GetClassStatic(void) { return "cNoteEntity"; }

View File

@ -8,6 +8,6 @@ public:
virtual ~cRedstonePoweredEntity() {};
/// Sets the internal redstone power flag to "on" or "off", depending on the parameter. Calls Activate() if appropriate
/// Sets the internal redstone power flag to "on" or "off", depending on the parameter. Calls Activate() if appropriate
virtual void SetRedstonePower(bool a_IsPowered) = 0;
};

View File

@ -2142,10 +2142,10 @@ bool cChunk::DoWithRedstonePoweredEntityAt(int a_BlockX, int a_BlockY, int a_Blo
case E_BLOCK_DROPPER:
case E_BLOCK_DISPENSER:
case E_BLOCK_NOTE_BLOCK:
break;
break;
default:
// There is a block entity here, but of different type. No other block entity can be here, so we can safely bail out
return false;
// There is a block entity here, but of different type. No other block entity can be here, so we can safely bail out
return false;
}
if (a_Callback.Item((cRedstonePoweredEntity *)*itr))