mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-18 06:01:19 +02:00
Fix infinite air heat near the boundary
This commit is contained in:
committed by
Tamás Bálint Misius
parent
b77a1cba2c
commit
d30aa74ac6
@@ -148,7 +148,7 @@ void Air::update_airh(void)
|
|||||||
auto j = (int)ty;
|
auto j = (int)ty;
|
||||||
tx -= i;
|
tx -= i;
|
||||||
ty -= j;
|
ty -= j;
|
||||||
if (!(bmap_blockairh[y][x]&0x8) && i>=2 && i<XCELLS-3 && j>=2 && j<YCELLS-3)
|
if (!(bmap_blockairh[y][x]&0x8) && i>=0 && i<XCELLS-1 && j>=0 && j<YCELLS-1)
|
||||||
{
|
{
|
||||||
auto odh = dh;
|
auto odh = dh;
|
||||||
dh *= 1.0f - AIR_VADV;
|
dh *= 1.0f - AIR_VADV;
|
||||||
|
Reference in New Issue
Block a user