mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-28 18:29:49 +02:00
Prevent fast particles from skipping over DESTROYALL wall
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user