summaryrefslogtreecommitdiffstats
path: root/src/Simulator/IncrementalRedstoneSimulator.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-07-11 20:40:33 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-07-11 20:40:33 +0200
commit416c160fb52b400e81e029a358c503053a2b93ec (patch)
treea9180e2226ee382008154fc3b8e51ad64ff2f942 /src/Simulator/IncrementalRedstoneSimulator.cpp
parentSuggestions (diff)
downloadcuberite-416c160fb52b400e81e029a358c503053a2b93ec.tar
cuberite-416c160fb52b400e81e029a358c503053a2b93ec.tar.gz
cuberite-416c160fb52b400e81e029a358c503053a2b93ec.tar.bz2
cuberite-416c160fb52b400e81e029a358c503053a2b93ec.tar.lz
cuberite-416c160fb52b400e81e029a358c503053a2b93ec.tar.xz
cuberite-416c160fb52b400e81e029a358c503053a2b93ec.tar.zst
cuberite-416c160fb52b400e81e029a358c503053a2b93ec.zip
Diffstat (limited to 'src/Simulator/IncrementalRedstoneSimulator.cpp')
-rw-r--r--src/Simulator/IncrementalRedstoneSimulator.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Simulator/IncrementalRedstoneSimulator.cpp b/src/Simulator/IncrementalRedstoneSimulator.cpp
index 141904530..ffaa02ef9 100644
--- a/src/Simulator/IncrementalRedstoneSimulator.cpp
+++ b/src/Simulator/IncrementalRedstoneSimulator.cpp
@@ -1915,6 +1915,7 @@ void cIncrementalRedstoneSimulator::SetBlockPowered(int a_RelBlockX, int a_RelBl
}
// No need to get neighbouring chunk as we can guarantee that when something is powering us, the entry will be in our chunk
+ // TODO: on C++11 support, change this to a llama function pased to a std::remove_if
for (PoweredBlocksList::iterator itr = m_PoweredBlocks->begin(); itr != m_PoweredBlocks->end(); ++itr)
{
if (
@@ -2077,6 +2078,8 @@ bool cIncrementalRedstoneSimulator::QueueRepeaterPowerChange(int a_RelBlockX, in
void cIncrementalRedstoneSimulator::SetSourceUnpowered(int a_SourceX, int a_SourceY, int a_SourceZ, cChunk * a_Chunk, bool a_IsFirstCall)
{
+ // TODO: on C++11 support, change both of these to llama functions pased to a std::remove_if
+
for (PoweredBlocksList::iterator itr = a_Chunk->GetRedstoneSimulatorPoweredBlocksList()->begin(); itr != a_Chunk->GetRedstoneSimulatorPoweredBlocksList()->end();)
{
if (itr->a_SourcePos.Equals(Vector3i(a_SourceX, a_SourceY, a_SourceZ)))