summaryrefslogtreecommitdiffstats
path: root/source/Simulator
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-11-16 17:03:56 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-11-16 17:03:56 +0100
commitb65a22fc1f0e5e95be234d6d94388091f74704a9 (patch)
tree0227c64f4eb43a15961d55f712099a643642864b /source/Simulator
parentRemoved log message when spawning players on a client. (diff)
downloadcuberite-b65a22fc1f0e5e95be234d6d94388091f74704a9.tar
cuberite-b65a22fc1f0e5e95be234d6d94388091f74704a9.tar.gz
cuberite-b65a22fc1f0e5e95be234d6d94388091f74704a9.tar.bz2
cuberite-b65a22fc1f0e5e95be234d6d94388091f74704a9.tar.lz
cuberite-b65a22fc1f0e5e95be234d6d94388091f74704a9.tar.xz
cuberite-b65a22fc1f0e5e95be234d6d94388091f74704a9.tar.zst
cuberite-b65a22fc1f0e5e95be234d6d94388091f74704a9.zip
Diffstat (limited to '')
-rw-r--r--source/Simulator/RedstoneSimulator.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/Simulator/RedstoneSimulator.cpp b/source/Simulator/RedstoneSimulator.cpp
index 1c30be324..66b92f724 100644
--- a/source/Simulator/RedstoneSimulator.cpp
+++ b/source/Simulator/RedstoneSimulator.cpp
@@ -56,12 +56,12 @@ void cRedstoneSimulator::Simulate( float a_Dt )
if( (*itr).Ticks <= 0 )
{
char Block = m_World->GetBlock( (*itr).Position );
- if( (*itr).bPowerOn == true && Block == E_BLOCK_REDSTONE_REPEATER_OFF )
+ if ((*itr).bPowerOn && (Block == E_BLOCK_REDSTONE_REPEATER_OFF))
{
m_World->FastSetBlock( (*itr).Position.x, (*itr).Position.y, (*itr).Position.z, E_BLOCK_REDSTONE_REPEATER_ON, m_World->GetBlockMeta( (*itr).Position ) );
m_Blocks.push_back( (*itr).Position );
}
- else if( (*itr).bPowerOn == false && Block == E_BLOCK_REDSTONE_REPEATER_ON )
+ else if (!(*itr).bPowerOn && (Block == E_BLOCK_REDSTONE_REPEATER_ON))
{
m_World->FastSetBlock( (*itr).Position.x, (*itr).Position.y, (*itr).Position.z, E_BLOCK_REDSTONE_REPEATER_OFF, m_World->GetBlockMeta( (*itr).Position ) );
m_Blocks.push_back( (*itr).Position );
@@ -860,11 +860,11 @@ void cRedstoneSimulator::SetRepeater( const Vector3i & a_Position, int a_Ticks,
sRepeaterChange & Change = *itr;
if( Change.Position.Equals( a_Position ) )
{
- if( Change.bPowerOn && a_bPowerOn == false )
+ if (Change.bPowerOn && !a_bPowerOn)
{
Change.bPowerOffNextTime = true;
}
- if( a_bPowerOn == true )
+ if (a_bPowerOn)
{
Change.bPowerOffNextTime = false;
}