From 6c47f46c31813836efa5af199766aff23fed9dd3 Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Tue, 28 Jul 2020 00:13:07 +0100 Subject: Ensure updating relatives calls the correct base case * Fixed recursive base unintentionally scheduling the origin position for an update because it called the wrong function --- src/Simulator/IncrementalRedstoneSimulator/PoweredRailHandler.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Simulator/IncrementalRedstoneSimulator/PoweredRailHandler.h') diff --git a/src/Simulator/IncrementalRedstoneSimulator/PoweredRailHandler.h b/src/Simulator/IncrementalRedstoneSimulator/PoweredRailHandler.h index 38fbf8d98..9e58e09ad 100644 --- a/src/Simulator/IncrementalRedstoneSimulator/PoweredRailHandler.h +++ b/src/Simulator/IncrementalRedstoneSimulator/PoweredRailHandler.h @@ -66,8 +66,8 @@ public: { a_Chunk.SetMeta(a_Position, (a_PoweringData.PowerLevel == 0) ? (a_Meta & 0x07) : (a_Meta | 0x08)); - UpdateAdjustedRelatives(a_Chunk, CurrentlyTickingChunk, a_Position + Offset); - UpdateAdjustedRelatives(a_Chunk, CurrentlyTickingChunk, a_Position + -Offset); + UpdateAdjustedRelative(a_Chunk, CurrentlyTickingChunk, a_Position + Offset); + UpdateAdjustedRelative(a_Chunk, CurrentlyTickingChunk, a_Position + -Offset); } return; -- cgit v1.2.3