Skip to content

Commit

Permalink
fix nx/ny again (values were reversed)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob1 committed Apr 26, 2014
1 parent df1aac8 commit 462bb78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/simulation/Simulation.cpp
Expand Up @@ -4534,8 +4534,8 @@ void Simulation::update_particles_i(int start, int inc)
// clear_xf, clear_yf is the last known position that the particle should almost certainly be able to move to
nxf = clear_xf;
nyf = clear_yf;
nx = clear_y;
ny = clear_x;
nx = clear_x;
ny = clear_y;
// Look for spaces to move horizontally (perpendicular to gravity direction), keep going until a space is found or the number of positions examined = rt
for (j=0;j<rt;j++)
{
Expand Down

0 comments on commit 462bb78

Please sign in to comment.