fix single-particle PSTN bug

This commit is contained in:
krawthekrow 2017-01-02 08:59:32 +08:00 committed by jacob1
parent 70b02301ff
commit 64b7fcf334

View File

@ -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;