From ed392c9724878fc39fe5cbba2f882dacf7278979 Mon Sep 17 00:00:00 2001 From: Bryan Hoyle Date: Tue, 16 Aug 2011 12:38:12 -0400 Subject: [PATCH] Fixed a bug with clne having its ctype overridden by manually placed particles. --- src/powder.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/powder.c b/src/powder.c index 595132bfc..b24960f3a 100644 --- a/src/powder.c +++ b/src/powder.c @@ -757,8 +757,11 @@ inline int create_part(int p, int x, int y, int tv)//the function for creating a t!=PT_STKM2&&t!=PT_PBCN) ) { - parts[pmap[y][x]>>8].ctype = t; - if (t==PT_LIFE && v>8].tmp = v; + if(!parts[pmap[y][x]>>8].ctype){ + parts[pmap[y][x]>>8].ctype = t; + if (t==PT_LIFE && v>8].tmp = v; + } } return -1; }