summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBryan Hoyle <starfoxprime@gmail.com>2011-08-16 16:38:12 (GMT)
committer Bryan Hoyle <starfoxprime@gmail.com>2011-08-16 16:38:12 (GMT)
commited392c9724878fc39fe5cbba2f882dacf7278979 (patch)
tree8a50f508226747d5521377bf655ca0aac85efaf6 /src
parentaa56eca5c01359732f7331d2a572ce31d7ff3c23 (diff)
downloadpowder-ed392c9724878fc39fe5cbba2f882dacf7278979.zip
powder-ed392c9724878fc39fe5cbba2f882dacf7278979.tar.gz
Fixed a bug with clne having its ctype overridden by manually placed particles.
Diffstat (limited to 'src')
-rw-r--r--src/powder.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/powder.c b/src/powder.c
index 595132b..b24960f 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<NGOLALT) parts[pmap[y][x]>>8].tmp = v;
+ if(!parts[pmap[y][x]>>8].ctype){
+ parts[pmap[y][x]>>8].ctype = t;
+ if (t==PT_LIFE && v<NGOLALT)
+ parts[pmap[y][x]>>8].tmp = v;
+ }
}
return -1;
}