mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-29 19:00:33 +02:00
CRAY: only set decoration colour after passing through FILT
This commit is contained in:
@@ -2689,6 +2689,11 @@ int Simulation::create_part(int p, int x, int y, int tv)
|
|||||||
parts[index].ctype = PT_DUST;
|
parts[index].ctype = PT_DUST;
|
||||||
return index;
|
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)
|
if (!(type == PT_INST || (elements[type].Properties&PROP_CONDUCTS)) || parts[index].life!=0)
|
||||||
return -1;
|
return -1;
|
||||||
if (p == -2 && type == PT_INST)
|
if (p == -2 && type == PT_INST)
|
||||||
|
@@ -96,7 +96,8 @@ int Element_CRAY::update(UPDATE_FUNC_ARGS)
|
|||||||
else
|
else
|
||||||
nr = sim->create_part(-1, x+nxi+nxx, y+nyi+nyy, parts[i].ctype);
|
nr = sim->create_part(-1, x+nxi+nxx, y+nyi+nyy, parts[i].ctype);
|
||||||
if (nr!=-1) {
|
if (nr!=-1) {
|
||||||
parts[nr].dcolour = colored;
|
if (colored)
|
||||||
|
parts[nr].dcolour = colored;
|
||||||
parts[nr].temp = parts[i].temp;
|
parts[nr].temp = parts[i].temp;
|
||||||
if(!--partsRemaining)
|
if(!--partsRemaining)
|
||||||
docontinue = 0;
|
docontinue = 0;
|
||||||
|
Reference in New Issue
Block a user