summaryrefslogtreecommitdiff
path: root/src/elements
diff options
context:
space:
mode:
Diffstat (limited to 'src/elements')
-rw-r--r--src/elements/gpmp.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/elements/gpmp.c b/src/elements/gpmp.c
index 2e52460..819a1e3 100644
--- a/src/elements/gpmp.c
+++ b/src/elements/gpmp.c
@@ -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))