mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-20 07:01:27 +02:00
TPT: Make ambient heat convection work a bit better
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user