From c6a52d1425cb6f62f899f506d6dc5a6a62870b19 Mon Sep 17 00:00:00 2001 From: catsoften Date: Tue, 6 Jul 2021 21:24:00 -0400 Subject: [PATCH] Prevent ROCK from repeatedly breaking into STNE and reforming under pressure --- src/simulation/elements/FIRE.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/simulation/elements/FIRE.cpp b/src/simulation/elements/FIRE.cpp index 6b3e2c94d..0b2e51823 100644 --- a/src/simulation/elements/FIRE.cpp +++ b/src/simulation/elements/FIRE.cpp @@ -131,7 +131,7 @@ int Element_FIRE_update(UPDATE_FUNC_ARGS) } } } - else if ((parts[i].ctype == PT_STNE || !parts[i].ctype) && sim->pv[y / CELL][x / CELL] >= 30.0f) // Form ROCK with pressure + else if ((parts[i].ctype == PT_STNE || !parts[i].ctype) && sim->pv[y / CELL][x / CELL] >= 30.0f && (parts[i].temp > 1943.15f || sim->pv[y / CELL][x / CELL] < 120.0f)) // Form ROCK with pressure, if it will stay molten or not immediately break { parts[i].tmp2 = RNG::Ref().between(0, 10); // Provide tmp2 for color noise parts[i].ctype = PT_ROCK;