From 3b19f846b9eda342e952d76eca8285cc4cd72401 Mon Sep 17 00:00:00 2001 From: Saveliy Skresanov Date: Fri, 21 Feb 2025 21:41:17 +0700 Subject: [PATCH] Fix infinite air in the lower right corner #580 . --- src/simulation/Air.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/simulation/Air.cpp b/src/simulation/Air.cpp index 455b62c7e..aa541578e 100644 --- a/src/simulation/Air.cpp +++ b/src/simulation/Air.cpp @@ -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=2 && j=2 && i<=XCELLS-3 && j>=2 && j<=YCELLS-3) + if (!bmap_blockair[y][x] && i>=2 && i=2 && j