CRAY: only set decoration colour after passing through FILT
This commit is contained in:
parent
45dc8ac757
commit
2e52e209a6
@ -2689,6 +2689,11 @@ int Simulation::create_part(int p, int x, int y, int tv)
|
||||
parts[index].ctype = PT_DUST;
|
||||
return index;
|
||||
}
|
||||
if (p==-2 && ((elements[type].Properties & PROP_DRAWONCTYPE) || type==PT_CRAY))
|
||||
{
|
||||
parts[index].ctype = PT_SPRK;
|
||||
return -1;
|
||||
}
|
||||
if (!(type == PT_INST || (elements[type].Properties&PROP_CONDUCTS)) || parts[index].life!=0)
|
||||
return -1;
|
||||
if (p == -2 && type == PT_INST)
|
||||
|
@ -96,7 +96,8 @@ int Element_CRAY::update(UPDATE_FUNC_ARGS)
|
||||
else
|
||||
nr = sim->create_part(-1, x+nxi+nxx, y+nyi+nyy, parts[i].ctype);
|
||||
if (nr!=-1) {
|
||||
parts[nr].dcolour = colored;
|
||||
if (colored)
|
||||
parts[nr].dcolour = colored;
|
||||
parts[nr].temp = parts[i].temp;
|
||||
if(!--partsRemaining)
|
||||
docontinue = 0;
|
||||
|
Reference in New Issue
Block a user