Fixed a bug with clne having its ctype overridden by manually placed particles.

This commit is contained in:
Bryan Hoyle 2011-08-16 12:38:12 -04:00
parent aa56eca5c0
commit ed392c9724

View File

@ -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)
)
{
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;
if (t==PT_LIFE && v<NGOLALT)
parts[pmap[y][x]>>8].tmp = v;
}
}
return -1;
}