Skip to content

Commit

Permalink
fix single-particle PSTN bug
Browse files Browse the repository at this point in the history
  • Loading branch information
krawthekrow authored and jacob1 committed Apr 9, 2018
1 parent 70b0230 commit 64b7fcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/simulation/elements/PSTN.cpp
Expand Up @@ -104,7 +104,7 @@ int Element_PSTN::update(UPDATE_FUNC_ARGS)
r = pmap[y+ry][x+rx];
if (!r)
continue;
if (TYP(r) == PT_PSTN)
if (TYP(r) == PT_PSTN && !parts[ID(r)].life)
{
bool movedPiston = false;
bool foundEnd = false;
Expand Down

0 comments on commit 64b7fcf

Please sign in to comment.