Skip to content

Commit

Permalink
jacksonmj: Always use Properties instead of Falldown to decide whethe…
Browse files Browse the repository at this point in the history
…r particles can pass through walls e52a623
  • Loading branch information
jacob1 committed Dec 18, 2015
1 parent d2807cb commit 3226ce0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/simulation/Simulation.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 3226ce0

Please sign in to comment.