Permalink
Browse files

Fix &255 usage

  • Loading branch information...
jacob1 committed Mar 1, 2018
1 parent a435b5f commit 5f4c5fb11803366521f44fd05a3a88418f28fbf4
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/simulation/Simulation.cpp
@@ -4709,7 +4709,7 @@ void Simulation::UpdateParticles(int start, int end)
{
if ((TYP(pmap[j][nx])!=t || bmap[j/CELL][nx/CELL]) && do_move(i, nx, ny, (float)nx, (float)j))
break;
if ((pmap[j][nx]&255)!=t || (bmap[j/CELL][nx/CELL] && bmap[j/CELL][nx/CELL]!=WL_STREAM))
if (TYP(pmap[j][nx])!=t || (bmap[j/CELL][nx/CELL] && bmap[j/CELL][nx/CELL]!=WL_STREAM))
break;
}
else if (s==-1) {} // particle is out of bounds

0 comments on commit 5f4c5fb

Please sign in to comment.