summaryrefslogtreecommitdiffstats
path: root/src/Simulator/IncrementalRedstoneSimulator.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-07-15 00:03:30 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-07-15 00:03:30 +0200
commit82fe5c05f0456a11fcb2079eaf44ee0565b0c3c7 (patch)
tree9d6cd0be50d1f93ee23aa57441c8387817c5d112 /src/Simulator/IncrementalRedstoneSimulator.h
parentFixed some meta resetting bugs (diff)
downloadcuberite-82fe5c05f0456a11fcb2079eaf44ee0565b0c3c7.tar
cuberite-82fe5c05f0456a11fcb2079eaf44ee0565b0c3c7.tar.gz
cuberite-82fe5c05f0456a11fcb2079eaf44ee0565b0c3c7.tar.bz2
cuberite-82fe5c05f0456a11fcb2079eaf44ee0565b0c3c7.tar.lz
cuberite-82fe5c05f0456a11fcb2079eaf44ee0565b0c3c7.tar.xz
cuberite-82fe5c05f0456a11fcb2079eaf44ee0565b0c3c7.tar.zst
cuberite-82fe5c05f0456a11fcb2079eaf44ee0565b0c3c7.zip
Diffstat (limited to '')
-rw-r--r--src/Simulator/IncrementalRedstoneSimulator.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Simulator/IncrementalRedstoneSimulator.h b/src/Simulator/IncrementalRedstoneSimulator.h
index ce987a60f..1faf4187b 100644
--- a/src/Simulator/IncrementalRedstoneSimulator.h
+++ b/src/Simulator/IncrementalRedstoneSimulator.h
@@ -162,9 +162,9 @@ private:
void SetSourceUnpowered(int a_RelSourceX, int a_RelSourceY, int a_RelSourceZ, cChunk * a_Chunk, bool a_IsFirstCall = true);
/** Returns if a coordinate is powered or linked powered */
- bool AreCoordsPowered(int a_RelBlockX, int a_RelBlockY, int a_RelBlockZ) { return AreCoordsDirectlyPowered(a_RelBlockX, a_RelBlockY, a_RelBlockZ) || AreCoordsLinkedPowered(a_RelBlockX, a_RelBlockY, a_RelBlockZ); }
+ bool AreCoordsPowered(int a_RelBlockX, int a_RelBlockY, int a_RelBlockZ) { return AreCoordsDirectlyPowered(a_RelBlockX, a_RelBlockY, a_RelBlockZ, m_Chunk) || AreCoordsLinkedPowered(a_RelBlockX, a_RelBlockY, a_RelBlockZ); }
/** Returns if a coordinate is in the directly powered blocks list */
- bool AreCoordsDirectlyPowered(int a_RelBlockX, int a_RelBlockY, int a_RelBlockZ);
+ bool AreCoordsDirectlyPowered(int a_RelBlockX, int a_RelBlockY, int a_RelBlockZ, cChunk * a_Chunk);
/** Returns if a coordinate is in the indirectly powered blocks list */
bool AreCoordsLinkedPowered(int a_RelBlockX, int a_RelBlockY, int a_RelBlockZ);
/** Returns if a coordinate was marked as simulated (for blocks toggleable by players) */