Skip to content

Commit

Permalink
fix formatting in RFRG and RFGL
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob1 committed Sep 10, 2016
1 parent 6e6eb36 commit f94b048
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/simulation/elements/RFGL.cpp
Expand Up @@ -32,7 +32,7 @@ Element_RFGL::Element_RFGL()

Properties = TYPE_LIQUID|PROP_DEADLY;

LowPressure = IPL;
LowPressure = IPL;
LowPressureTransition = NT;
HighPressure = IPH;
HighPressureTransition = NT;
Expand Down
16 changes: 9 additions & 7 deletions src/simulation/elements/RFRG.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit f94b048

Please sign in to comment.