Okay, it wasn't functionally equivalent (see 79f9a2d6
)
This commit is contained in:
parent
79f9a2d62d
commit
89ef7ce216
@ -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)
|
if (t>=0 && t<PT_NUM && !elements[t].Enabled)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
if (t==PT_SPRK && !elements[TYP(pmap[y][x])].CtypeDraw)
|
if (t == PT_SPRK && !(p == -2 && elements[TYP(pmap[y][x])].CtypeDraw))
|
||||||
{
|
{
|
||||||
int type = TYP(pmap[y][x]);
|
int type = TYP(pmap[y][x]);
|
||||||
int index = ID(pmap[y][x]);
|
int index = ID(pmap[y][x]);
|
||||||
|
Loading…
Reference in New Issue
Block a user