From 4bda62b68cdaf7384de6acfaf652051fbd6a2e71 Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Wed, 13 Jun 2012 01:40:13 +0100 Subject: [PATCH] TPT: Make ambient heat convection work a bit better --- src/simulation/Air.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/simulation/Air.cpp b/src/simulation/Air.cpp index e798181de..39418364e 100644 --- a/src/simulation/Air.cpp +++ b/src/simulation/Air.cpp @@ -107,9 +107,8 @@ void Air::update_airh(void) } //if(!gravityMode) TODO: GET REAL VALUE { //Vertical gravity only for the time being - float airdiff = dh-hv[y][x]; - pv[y][x] += airdiff/5000.0f; - if(airdiff>0) + float airdiff = hv[y-1][x]-hv[y][x]; + if(airdiff>0 && !bmap_blockairh[y-1][x]) vy[y][x] -= airdiff/5000.0f; } ohv[y][x] = dh;