Permalink
Browse files

Prevent fast particles from skipping over DESTROYALL wall

  • Loading branch information...
jacksonmj committed Oct 27, 2014
1 parent ca0eece commit f7b53d02317b02c1c67ec71877e32ac744e1970a
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/simulation/Simulation.cpp
@@ -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;

0 comments on commit f7b53d0

Please sign in to comment.