diff --git a/src/simulation/elements/RFGL.cpp b/src/simulation/elements/RFGL.cpp index f8172a038..e03943bd0 100644 --- a/src/simulation/elements/RFGL.cpp +++ b/src/simulation/elements/RFGL.cpp @@ -32,7 +32,7 @@ Element_RFGL::Element_RFGL() Properties = TYPE_LIQUID|PROP_DEADLY; - LowPressure = IPL; + LowPressure = IPL; LowPressureTransition = NT; HighPressure = IPH; HighPressureTransition = NT; diff --git a/src/simulation/elements/RFRG.cpp b/src/simulation/elements/RFRG.cpp index f31924953..8eb5064b6 100644 --- a/src/simulation/elements/RFRG.cpp +++ b/src/simulation/elements/RFRG.cpp @@ -47,13 +47,15 @@ Element_RFRG::Element_RFRG() //#TPT-Directive ElementHeader Element_RFRG static int update(UPDATE_FUNC_ARGS) int Element_RFRG::update(UPDATE_FUNC_ARGS) { - if (sim->pv[y/CELL][x/CELL] > 15) { - parts[i].temp += (sim->pv[y/CELL][x/CELL] - 15.0f) / 2.0f; - if (parts[i].temp >= 343.15f) { - sim->part_change_type(i, x, y, PT_RFGL); - parts[i].life = 20; - } - } + if (sim->pv[y/CELL][x/CELL] > 15) + { + parts[i].temp += (sim->pv[y/CELL][x/CELL] - 15.0f) / 2.0f; + if (parts[i].temp >= 343.15f) + { + sim->part_change_type(i, x, y, PT_RFGL); + parts[i].life = 20; + } + } return 0; }