Skip to content

Commit

Permalink
Fix PIPE being reversed
Browse files Browse the repository at this point in the history
  • Loading branch information
LBPHacker authored and jacob1 committed Jun 24, 2018
1 parent 11d33d5 commit 27f5ba1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/simulation/elements/PIPE.cpp
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 27f5ba1

Please sign in to comment.