fix formatting in RFRG and RFGL
This commit is contained in:
parent
6e6eb36bf5
commit
f94b0489f5
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user