Remove silly copypasta from GPMP, causing gravity to depend on air pressure
This commit is contained in:
parent
835d6bbfb9
commit
befd4f5ef5
@ -27,8 +27,6 @@ int update_GPMP(UPDATE_FUNC_ARGS) {
|
||||
parts[i].temp = -256.0+273.15;
|
||||
|
||||
gravmap[(y/CELL)*(XRES/CELL)+(x/CELL)] = 0.2f*(parts[i].temp-273.15);
|
||||
if (y+CELL<YRES && pv[y/CELL+1][x/CELL]<(parts[i].temp-273.15))
|
||||
gravmap[(y/CELL+1)*(XRES/CELL)+(x/CELL)] += 0.1f*((parts[i].temp-273.15)-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))
|
||||
|
Loading…
Reference in New Issue
Block a user