From 27f5ba199d70d8b95bcc33d17fb6ce35894f0945 Mon Sep 17 00:00:00 2001 From: LBPHacker Date: Sun, 24 Jun 2018 10:13:10 +0200 Subject: [PATCH] Fix PIPE being reversed --- src/simulation/elements/PIPE.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/simulation/elements/PIPE.cpp b/src/simulation/elements/PIPE.cpp index 17544b874..2786aaf4f 100644 --- a/src/simulation/elements/PIPE.cpp +++ b/src/simulation/elements/PIPE.cpp @@ -75,7 +75,7 @@ Element_PIPE::Element_PIPE() signed char pos_1_rx[] = {-1,-1,-1, 0, 0, 1, 1, 1}; signed char pos_1_ry[] = {-1, 0, 1,-1, 1,-1, 0, 1}; -unsigned int nextColor(unsigned int flags) +unsigned int prevColor(unsigned int flags) { unsigned int color = flags & PFLAG_COLORS; if (color == PFLAG_COLOR_RED) @@ -87,7 +87,7 @@ unsigned int nextColor(unsigned int flags) return PFLAG_COLOR_RED; } -unsigned int prevColor(unsigned int flags) +unsigned int nextColor(unsigned int flags) { unsigned int color = flags & PFLAG_COLORS; if (color == PFLAG_COLOR_RED)