Prevent fast particles from skipping over DESTROYALL wall

This commit is contained in:
jacksonmj
2014-10-27 17:49:55 +00:00
parent ca0eecee80
commit f7b53d0231

View File

@@ -4279,7 +4279,7 @@ killed:
clear_y = (int)(clear_yf+0.5f); clear_y = (int)(clear_yf+0.5f);
break; 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 // found an obstacle
clear_xf = fin_xf-dx; clear_xf = fin_xf-dx;