Fix PIPE being reversed

This commit is contained in:
LBPHacker
2018-06-24 10:13:10 +02:00
committed by jacob1
parent 11d33d5b77
commit 27f5ba199d

View File

@@ -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_rx[] = {-1,-1,-1, 0, 0, 1, 1, 1};
signed char pos_1_ry[] = {-1, 0, 1,-1, 1,-1, 0, 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; unsigned int color = flags & PFLAG_COLORS;
if (color == PFLAG_COLOR_RED) if (color == PFLAG_COLOR_RED)
@@ -87,7 +87,7 @@ unsigned int nextColor(unsigned int flags)
return PFLAG_COLOR_RED; return PFLAG_COLOR_RED;
} }
unsigned int prevColor(unsigned int flags) unsigned int nextColor(unsigned int flags)
{ {
unsigned int color = flags & PFLAG_COLORS; unsigned int color = flags & PFLAG_COLORS;
if (color == PFLAG_COLOR_RED) if (color == PFLAG_COLOR_RED)