diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-06-12 16:59:09 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-06-12 16:59:09 (GMT) |
| commit | e3634e3b5f9a6e599da812db1c76878d7d0a257e (patch) | |
| tree | 9c12cf90b7a3d12dbb300bc67cb5eb96a1c15572 /src/simulation/elements/GPMP.cpp | |
| parent | a1a0fb5c0251218cd6fb1b366f7eac6f4711efcb (diff) | |
| download | powder-e3634e3b5f9a6e599da812db1c76878d7d0a257e.zip powder-e3634e3b5f9a6e599da812db1c76878d7d0a257e.tar.gz | |
TPT: Remove silly copypasta from GPMP, causing gravity to depend on air pressure befd4f5ef58
Diffstat (limited to 'src/simulation/elements/GPMP.cpp')
| -rw-r--r-- | src/simulation/elements/GPMP.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/simulation/elements/GPMP.cpp b/src/simulation/elements/GPMP.cpp index d36579c..aea2519 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+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() {}
\ No newline at end of file +Element_GPMP::~Element_GPMP() {} |
