From 3226ce0ac27e71d6b67c8311f0846af16eee3f9b Mon Sep 17 00:00:00 2001 From: jacob1 Date: Fri, 18 Dec 2015 00:51:04 -0500 Subject: [PATCH] jacksonmj: Always use Properties instead of Falldown to decide whether particles can pass through walls e52a62354473 --- src/simulation/Simulation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/simulation/Simulation.cpp b/src/simulation/Simulation.cpp index ab3c19da7..740593fcc 100644 --- a/src/simulation/Simulation.cpp +++ b/src/simulation/Simulation.cpp @@ -1963,9 +1963,9 @@ bool Simulation::IsWallBlocking(int x, int y, int type) return true; else if (wall == WL_ALLOWENERGY && !(elements[type].Properties&TYPE_ENERGY)) return true; - else if (wall == WL_ALLOWLIQUID && elements[type].Falldown!=2) + else if (wall == WL_ALLOWLIQUID && !(elements[type].Properties&TYPE_LIQUID)) return true; - else if (wall == WL_ALLOWSOLID && elements[type].Falldown!=1) + else if (wall == WL_ALLOWSOLID && !(elements[type].Properties&TYPE_PART)) return true; else if (wall == WL_ALLOWAIR || wall == WL_WALL || wall == WL_WALLELEC) return true;