From 1c579f58aaa0957d37d6f66787630a402ed43836 Mon Sep 17 00:00:00 2001 From: mBornand <63592189+mBornand@users.noreply.github.com> Date: Sun, 3 May 2020 01:58:24 +0200 Subject: Update src/Simulator/IncrementalRedstoneSimulator/RedstoneWireHandler.h Co-authored-by: peterbell10 --- src/Simulator/IncrementalRedstoneSimulator/RedstoneWireHandler.h | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/Simulator') diff --git a/src/Simulator/IncrementalRedstoneSimulator/RedstoneWireHandler.h b/src/Simulator/IncrementalRedstoneSimulator/RedstoneWireHandler.h index dfb35a9bf..c48790388 100644 --- a/src/Simulator/IncrementalRedstoneSimulator/RedstoneWireHandler.h +++ b/src/Simulator/IncrementalRedstoneSimulator/RedstoneWireHandler.h @@ -38,14 +38,7 @@ public: else { /** Check if block is not aligned in z direction */ - if (a_Offset.z == 0) - { - return false; - } - else - { - return true; - } + return (a_Offset.z != 0); } case E_BLOCK_ACTIVE_COMPARATOR: case E_BLOCK_INACTIVE_COMPARATOR: -- cgit v1.2.3