Skip to content

Commit

Permalink
Prevent fast particles from skipping over DESTROYALL wall
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksonmj committed Oct 27, 2014
1 parent ca0eece commit f7b53d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/simulation/Simulation.cpp
Expand Up @@ -4279,7 +4279,7 @@ void Simulation::update_particles_i(int start, int inc)
clear_y = (int)(clear_yf+0.5f);
break;
}
if (!eval_move(t, fin_x, fin_y, NULL) || (t == PT_PHOT && pmap[fin_y][fin_x]))
if (!eval_move(t, fin_x, fin_y, NULL) || (t == PT_PHOT && pmap[fin_y][fin_x]) || bmap[fin_y/CELL][fin_x/CELL]==WL_DESTROYALL)
{
// found an obstacle
clear_xf = fin_xf-dx;
Expand Down

0 comments on commit f7b53d0

Please sign in to comment.