Fix ACID sometimes eating one more particle than allowed (#982)

This commit is contained in:
jm211
2025-01-25 00:19:45 -05:00
committed by GitHub
parent 04dac4c020
commit b5872657c5

View File

@@ -82,7 +82,7 @@ static int update(UPDATE_FUNC_ARGS)
sim->kill_part(ID(r));
}
}
else if (rt != PT_CLNE && rt != PT_PCLN && parts[i].life >= 50 && sim->rng.chance(elements[rt].Hardness, 1000))
else if (rt != PT_CLNE && rt != PT_PCLN && parts[i].life > 50 && sim->rng.chance(elements[rt].Hardness, 1000))
{
if (sim->parts_avg(i, ID(r),PT_GLAS)!= PT_GLAS)//GLAS protects stuff from acid
{