mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-12 03:14:04 +02:00
fix formatting in RFRG and RFGL
This commit is contained in:
@@ -47,9 +47,11 @@ 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) {
|
||||
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) {
|
||||
if (parts[i].temp >= 343.15f)
|
||||
{
|
||||
sim->part_change_type(i, x, y, PT_RFGL);
|
||||
parts[i].life = 20;
|
||||
}
|
||||
|
Reference in New Issue
Block a user