From e3634e3b5f9a6e599da812db1c76878d7d0a257e Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Tue, 12 Jun 2012 17:59:09 +0100 Subject: [PATCH] TPT: Remove silly copypasta from GPMP, causing gravity to depend on air pressure befd4f5ef58 --- src/simulation/elements/GPMP.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/simulation/elements/GPMP.cpp b/src/simulation/elements/GPMP.cpp index d36579ca5..aea251952 100644 --- a/src/simulation/elements/GPMP.cpp +++ b/src/simulation/elements/GPMP.cpp @@ -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+CELLpv[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