fix formatting in RFRG and RFGL
This commit is contained in:
parent
6e6eb36bf5
commit
f94b0489f5
@ -32,7 +32,7 @@ Element_RFGL::Element_RFGL()
|
|||||||
|
|
||||||
Properties = TYPE_LIQUID|PROP_DEADLY;
|
Properties = TYPE_LIQUID|PROP_DEADLY;
|
||||||
|
|
||||||
LowPressure = IPL;
|
LowPressure = IPL;
|
||||||
LowPressureTransition = NT;
|
LowPressureTransition = NT;
|
||||||
HighPressure = IPH;
|
HighPressure = IPH;
|
||||||
HighPressureTransition = NT;
|
HighPressureTransition = NT;
|
||||||
|
@ -47,13 +47,15 @@ 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;
|
{
|
||||||
if (parts[i].temp >= 343.15f) {
|
parts[i].temp += (sim->pv[y/CELL][x/CELL] - 15.0f) / 2.0f;
|
||||||
sim->part_change_type(i, x, y, PT_RFGL);
|
if (parts[i].temp >= 343.15f)
|
||||||
parts[i].life = 20;
|
{
|
||||||
}
|
sim->part_change_type(i, x, y, PT_RFGL);
|
||||||
}
|
parts[i].life = 20;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user