Skip to content

Commit

Permalink
Okay, it wasn't functionally equivalent (see 79f9a2d)
Browse files Browse the repository at this point in the history
  • Loading branch information
LBPHacker committed Aug 1, 2019
1 parent 79f9a2d commit 89ef7ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/simulation/Simulation.cpp
Expand Up @@ -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 && !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 index = ID(pmap[y][x]);
Expand Down

0 comments on commit 89ef7ce

Please sign in to comment.