Permalink
Browse files

fix single-particle PSTN bug

  • Loading branch information...
krawthekrow authored and jacob1 committed Jan 2, 2017
1 parent 70b0230 commit 64b7fcf334202a4fa3084befc665437636ea28ca
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/simulation/elements/PSTN.cpp
@@ -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;

0 comments on commit 64b7fcf

Please sign in to comment.