TPT: Make ambient heat convection work a bit better
This commit is contained in:
parent
57548b60d9
commit
4bda62b68c
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user