fix formatting in RFRG and RFGL

This commit is contained in:
jacob1 2016-09-10 12:56:12 -04:00
parent 6e6eb36bf5
commit f94b0489f5
2 changed files with 10 additions and 8 deletions

View File

@ -47,9 +47,11 @@ Element_RFRG::Element_RFRG()
//#TPT-Directive ElementHeader Element_RFRG static int update(UPDATE_FUNC_ARGS) //#TPT-Directive ElementHeader Element_RFRG static int update(UPDATE_FUNC_ARGS)
int Element_RFRG::update(UPDATE_FUNC_ARGS) int Element_RFRG::update(UPDATE_FUNC_ARGS)
{ {
if (sim->pv[y/CELL][x/CELL] > 15) { if (sim->pv[y/CELL][x/CELL] > 15)
{
parts[i].temp += (sim->pv[y/CELL][x/CELL] - 15.0f) / 2.0f; parts[i].temp += (sim->pv[y/CELL][x/CELL] - 15.0f) / 2.0f;
if (parts[i].temp >= 343.15f) { if (parts[i].temp >= 343.15f)
{
sim->part_change_type(i, x, y, PT_RFGL); sim->part_change_type(i, x, y, PT_RFGL);
parts[i].life = 20; parts[i].life = 20;
} }