mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-16 13:24:02 +02:00
Fix infinite air in the lower right corner #580 .
This commit is contained in:
@@ -133,7 +133,7 @@ void Air::update_airh(void)
|
||||
auto j = (int)ty;
|
||||
tx -= i;
|
||||
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>=2 && i<XCELLS-3 && j>=2 && j<YCELLS-3)
|
||||
{
|
||||
auto odh = dh;
|
||||
dh *= 1.0f - AIR_VADV;
|
||||
@@ -333,7 +333,7 @@ void Air::update_air(void)
|
||||
auto j = (int)ty;
|
||||
tx -= i;
|
||||
ty -= j;
|
||||
if (!bmap_blockair[y][x] && i>=2 && i<=XCELLS-3 && j>=2 && j<=YCELLS-3)
|
||||
if (!bmap_blockair[y][x] && i>=2 && i<XCELLS-3 && j>=2 && j<YCELLS-3)
|
||||
{
|
||||
dx *= 1.0f - AIR_VADV;
|
||||
dy *= 1.0f - AIR_VADV;
|
||||
|
Reference in New Issue
Block a user