summaryrefslogtreecommitdiff
path: root/src/elements
diff options
context:
space:
mode:
Diffstat (limited to 'src/elements')
-rw-r--r--src/elements/pipe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/elements/pipe.c b/src/elements/pipe.c
index 54e3fb6..7411932 100644
--- a/src/elements/pipe.c
+++ b/src/elements/pipe.c
@@ -45,7 +45,7 @@ void pushParticle(int i, int count, int original)
}
else //predefined 1 pixel thick pipe movement
{
- int coords = 7 - (parts[i].tmp>>10);
+ int coords = 7 - ((parts[i].tmp>>10)&7);
r = pmap[y+ pos_1_ry[coords]][x+ pos_1_rx[coords]];
if (!r)
{