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;
|
||||
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,6 +96,7 @@ 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) {
|
||||
if (colored)
|
||||
parts[nr].dcolour = colored;
|
||||
parts[nr].temp = parts[i].temp;
|
||||
if(!--partsRemaining)
|
||||
|
Reference in New Issue
Block a user