From bef7cce5ede018a4b0bc0f03cbd7a3a87f066d4c Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Fri, 1 May 2015 22:55:43 +0100 Subject: Improved wires and repeaters * Fixed repeater cross-chunk power detection + Re-implemented horizontal wire cut-off checking --- src/Simulator/IncrementalRedstoneSimulator.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/Simulator/IncrementalRedstoneSimulator.h') diff --git a/src/Simulator/IncrementalRedstoneSimulator.h b/src/Simulator/IncrementalRedstoneSimulator.h index c383b6a0b..5133f7caf 100644 --- a/src/Simulator/IncrementalRedstoneSimulator.h +++ b/src/Simulator/IncrementalRedstoneSimulator.h @@ -196,6 +196,8 @@ private: /** Recursively searches for a wire path and powers everything that should be powered */ void FindAndPowerBorderingWires(std::vector> & a_PotentialWireList, const std::pair & a_Entry); + void PowerBorderingWires(std::vector> & a_PotentialWireList, const std::pair & a_Entry, const Vector3i & a_AdjustedPos, cChunk * a_NeighbourChunk, unsigned char a_MyPower); + /** Marks a block as being powered through another block */ void SetBlockLinkedPowered(int a_RelBlockX, int a_RelBlockY, int a_RelBlockZ, int a_RelMiddleX, int a_RelMiddleY, int a_RelMiddleZ, int a_RelSourceX, int a_RelSourceY, int a_RelSourceZ, BLOCKTYPE a_MiddeBlock, unsigned char a_PowerLevel = MAX_POWER_LEVEL); -- cgit v1.2.3