Prevent fast particles from skipping over DESTROYALL wall
This commit is contained in:
parent
ca0eecee80
commit
f7b53d0231
@ -4279,7 +4279,7 @@ killed:
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user