Permalink
Browse files

Fix PIPE being reversed

  • Loading branch information...
LBPHacker authored and jacob1 committed Jun 24, 2018
1 parent 11d33d5 commit 27f5ba199d70d8b95bcc33d17fb6ce35894f0945
Showing with 2 additions and 2 deletions.
  1. +2 −2 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)

0 comments on commit 27f5ba1

Please sign in to comment.