summaryrefslogtreecommitdiff
path: root/src/elements/pipe.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/elements/pipe.c')
-rw-r--r--src/elements/pipe.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/elements/pipe.c b/src/elements/pipe.c
index 61c56f6..1607a0b 100644
--- a/src/elements/pipe.c
+++ b/src/elements/pipe.c
@@ -147,6 +147,8 @@ int update_PIPE(UPDATE_FUNC_ARGS) {
//try eating particle at entrance
else if ((parts[i].tmp&0xFF) == 0 && (ptypes[r&0xFF].falldown!= 0 || ptypes[r&0xFF].state == ST_GAS))
{
+ if ((r&0xFF)==PT_SOAP)
+ detach(r>>8);
parts[i].tmp = (parts[i].tmp&~0xFF) | parts[r>>8].type;
parts[i].temp = parts[r>>8].temp;
parts[i].flags = parts[r>>8].life;