From 46068833d130eecc95942613cd8cc9c4cb6188fe Mon Sep 17 00:00:00 2001 From: jacksonmj Date: Tue, 13 Dec 2011 17:04:56 +0800 Subject: [PATCH] Make PIPE detach SOAP particles (crash fix) --- src/elements/pipe.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/elements/pipe.c b/src/elements/pipe.c index 61c56f6a1..1607a0bde 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;