From 091764533dd5b95392536e1cd9a624de717f9a30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s=20B=C3=A1lint=20Misius?= Date: Thu, 26 Nov 2020 09:19:56 +0100 Subject: [PATCH] Reset molten SLCN tmp in reactions to prevent interference with products --- src/simulation/elements/FIRE.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/simulation/elements/FIRE.cpp b/src/simulation/elements/FIRE.cpp index e93891049..24218e2e1 100644 --- a/src/simulation/elements/FIRE.cpp +++ b/src/simulation/elements/FIRE.cpp @@ -176,11 +176,13 @@ int Element_FIRE_update(UPDATE_FUNC_ARGS) parts[i].ctype = PT_STNE; break; } + parts[i].tmp = 0; sim->kill_part(ID(r)); continue; } else if (rt == PT_LAVA && (parts[ID(r)].ctype == PT_METL || parts[ID(r)].ctype == PT_BMTL) && parts[i].ctype == PT_SLCN) { + parts[i].tmp = 0; parts[i].ctype = PT_NSCN; parts[ID(r)].ctype = PT_PSCN; }