Fixed a bug with clne having its ctype overridden by manually placed particles.
This commit is contained in:
parent
aa56eca5c0
commit
ed392c9724
@ -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)
|
t!=PT_STKM2&&t!=PT_PBCN)
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
if(!parts[pmap[y][x]>>8].ctype){
|
||||||
parts[pmap[y][x]>>8].ctype = t;
|
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;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user