Prioritise ctypeDraw functions over sparking
This adds an exception from brush-based sparking behaviour for
elements that have a ctypeDraw function. A functionally equivalent
exception has been removed in de1fc0f
, thus making it impossible to
ctype-draw SPRK on a few elements that otherwise aren't sparkable,
such as CONV.
This commit is contained in:
parent
9327eecd7b
commit
79f9a2d62d
@ -3104,7 +3104,7 @@ int Simulation::create_part(int p, int x, int y, int t, int v)
|
||||
if (t>=0 && t<PT_NUM && !elements[t].Enabled)
|
||||
return -1;
|
||||
|
||||
if (t==PT_SPRK)
|
||||
if (t==PT_SPRK && !elements[TYP(pmap[y][x])].CtypeDraw)
|
||||
{
|
||||
int type = TYP(pmap[y][x]);
|
||||
int index = ID(pmap[y][x]);
|
||||
|
Loading…
Reference in New Issue
Block a user