diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-10-06 22:04:58 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-10-06 22:04:58 +0200 |
commit | 28332c656712cc692ca8355a4f5e8c0c5012c60c (patch) | |
tree | 0e4bcf6ba99be50731d64b5add9c63bd8b1dec1a /source/World.cpp | |
parent | Removed a few debugging messages from the release builds. (diff) | |
download | cuberite-28332c656712cc692ca8355a4f5e8c0c5012c60c.tar cuberite-28332c656712cc692ca8355a4f5e8c0c5012c60c.tar.gz cuberite-28332c656712cc692ca8355a4f5e8c0c5012c60c.tar.bz2 cuberite-28332c656712cc692ca8355a4f5e8c0c5012c60c.tar.lz cuberite-28332c656712cc692ca8355a4f5e8c0c5012c60c.tar.xz cuberite-28332c656712cc692ca8355a4f5e8c0c5012c60c.tar.zst cuberite-28332c656712cc692ca8355a4f5e8c0c5012c60c.zip |
Diffstat (limited to 'source/World.cpp')
-rw-r--r-- | source/World.cpp | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/source/World.cpp b/source/World.cpp index 961d99d7c..055a0a75e 100644 --- a/source/World.cpp +++ b/source/World.cpp @@ -3,7 +3,6 @@ #include "BlockID.h" #include "World.h" -#include "Redstone.h" #include "ChunkDef.h" #include "ClientHandle.h" #include "Pickup.h" @@ -508,24 +507,20 @@ void cWorld::Tick(float a_Dt) m_RSList.clear(); std::vector<int>::const_iterator cii; // FIXME - Please rename this variable, WTF is cii??? Use human readable variable names or common abbreviations (i, idx, itr, iter) - for(cii=m_RSList_copy.begin(); cii!=m_RSList_copy.end();) + for (cii = m_RSList_copy.begin(); cii != m_RSList_copy.end();) { - int tempX = *cii;cii++; - int tempY = *cii;cii++; - int tempZ = *cii;cii++; - int state = *cii;cii++; + int tempX = *cii; cii++; + int tempY = *cii; cii++; + int tempZ = *cii; cii++; + int state = *cii; cii++; if ( (state == 11111) && ( (int)GetBlock( tempX, tempY, tempZ ) == E_BLOCK_REDSTONE_TORCH_OFF ) ) { FastSetBlock( tempX, tempY, tempZ, E_BLOCK_REDSTONE_TORCH_ON, (int)GetBlockMeta( tempX, tempY, tempZ ) ); - cRedstone Redstone(this); - Redstone.ChangeRedstone( tempX, tempY, tempZ, true ); } else if ( (state == 00000) && ( (int)GetBlock( tempX, tempY, tempZ ) == E_BLOCK_REDSTONE_TORCH_ON ) ) { FastSetBlock( tempX, tempY, tempZ, E_BLOCK_REDSTONE_TORCH_OFF, (int)GetBlockMeta( tempX, tempY, tempZ ) ); - cRedstone Redstone(this); - Redstone.ChangeRedstone( tempX, tempY, tempZ, false ); } } m_RSList_copy.erase(m_RSList_copy.begin(),m_RSList_copy.end()); |