Permalink
Browse files

jacksonmj: Always use Properties instead of Falldown to decide whethe…

…r particles can pass through walls e52a623
  • Loading branch information...
jacob1 committed Dec 18, 2015
1 parent d2807cb commit 3226ce0ac27e71d6b67c8311f0846af16eee3f9b
Showing with 2 additions and 2 deletions.
  1. +2 −2 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;

0 comments on commit 3226ce0

Please sign in to comment.