From 835d6bbfb92b224e91428ea4f36ea16f568371d3 Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Fri, 11 May 2012 17:58:25 +0100 Subject: [PATCH] Fix for PUMP --- src/elements/pump.c | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/src/elements/pump.c b/src/elements/pump.c index 26b376cf0..77369c278 100644 --- a/src/elements/pump.c +++ b/src/elements/pump.c @@ -26,16 +26,13 @@ int update_PUMP(UPDATE_FUNC_ARGS) { if (parts[i].temp<= -256.0+273.15) parts[i].temp = -256.0+273.15; - if (pv[y/CELL][x/CELL]<(parts[i].temp-273.15)) - pv[y/CELL][x/CELL] += 0.1f*((parts[i].temp-273.15)-pv[y/CELL][x/CELL]); - if (y+CELL=0 && (y+ry)-CELL>0 && (x+rx)+CELL=0 && y+ry>0 && x+rx