TPT: Remove silly copypasta from GPMP, causing gravity to depend on air pressure befd4f5ef5
This commit is contained in:
parent
a1a0fb5c02
commit
e3634e3b5f
@ -60,8 +60,6 @@ int Element_GPMP::update(UPDATE_FUNC_ARGS)
|
||||
parts[i].temp = -256.0+273.15;
|
||||
|
||||
sim->gravmap[(y/CELL)*(XRES/CELL)+(x/CELL)] = 0.2f*(parts[i].temp-273.15);
|
||||
if (y+CELL<YRES && sim->pv[y/CELL+1][x/CELL]<(parts[i].temp-273.15))
|
||||
sim->gravmap[(y/CELL+1)*(XRES/CELL)+(x/CELL)] += 0.1f*((parts[i].temp-273.15)-sim->gravmap[(y/CELL+1)*(XRES/CELL)+(x/CELL)]);
|
||||
for (rx=-2; rx<3; rx++)
|
||||
for (ry=-2; ry<3; ry++)
|
||||
if (x+rx>=0 && y+ry>0 && x+rx<XRES && y+ry<YRES && (rx || ry))
|
||||
@ -93,4 +91,4 @@ int Element_GPMP::graphics(GRAPHICS_FUNC_ARGS)
|
||||
}
|
||||
|
||||
|
||||
Element_GPMP::~Element_GPMP() {}
|
||||
Element_GPMP::~Element_GPMP() {}
|
||||
|
Loading…
Reference in New Issue
Block a user