From 05fbb924204e48188b3f5f5f6cdce60816472417 Mon Sep 17 00:00:00 2001 From: jacksonmj Date: Fri, 11 Nov 2011 05:28:56 +0800 Subject: [PATCH] Make PIPE reset (ready to generate pattern) when ctype is cleared and life is 0 --- src/elements/pipe.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/elements/pipe.c b/src/elements/pipe.c index 3ee526215..3f370a1ea 100644 --- a/src/elements/pipe.c +++ b/src/elements/pipe.c @@ -191,14 +191,16 @@ int update_PIPE(UPDATE_FUNC_ARGS) { // make a border for (rx=-2; rx<3; rx++) for (ry=-2; ry<3; ry++) + { if (x+rx>=0 && y+ry>0 && x+rx