mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-18 22:21:21 +02:00
Fix ACID sometimes eating one more particle than allowed (#982)
This commit is contained in:
@@ -82,7 +82,7 @@ static int update(UPDATE_FUNC_ARGS)
|
|||||||
sim->kill_part(ID(r));
|
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
|
if (sim->parts_avg(i, ID(r),PT_GLAS)!= PT_GLAS)//GLAS protects stuff from acid
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user