summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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;
}