TPT: Make ambient heat convection work a bit better

This commit is contained in:
Simon Robertshaw 2012-06-13 01:40:13 +01:00
parent 57548b60d9
commit 4bda62b68c

View File

@ -107,9 +107,8 @@ void Air::update_airh(void)
} }
//if(!gravityMode) TODO: GET REAL VALUE //if(!gravityMode) TODO: GET REAL VALUE
{ //Vertical gravity only for the time being { //Vertical gravity only for the time being
float airdiff = dh-hv[y][x]; float airdiff = hv[y-1][x]-hv[y][x];
pv[y][x] += airdiff/5000.0f; if(airdiff>0 && !bmap_blockairh[y-1][x])
if(airdiff>0)
vy[y][x] -= airdiff/5000.0f; vy[y][x] -= airdiff/5000.0f;
} }
ohv[y][x] = dh; ohv[y][x] = dh;