mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-13 03:02:38 +00:00
Fixes projectile runtime (#59824)
For example projectile moving into a chasm on last step.
This commit is contained in:
@@ -828,6 +828,8 @@
|
|||||||
else if(T != loc)
|
else if(T != loc)
|
||||||
step_towards(src, T)
|
step_towards(src, T)
|
||||||
hitscan_last = loc
|
hitscan_last = loc
|
||||||
|
if(QDELETED(src)) //deleted on last move
|
||||||
|
return
|
||||||
if(!hitscanning && !forcemoved)
|
if(!hitscanning && !forcemoved)
|
||||||
pixel_x = trajectory.return_px() - trajectory.mpx * trajectory_multiplier * SSprojectiles.global_iterations_per_move
|
pixel_x = trajectory.return_px() - trajectory.mpx * trajectory_multiplier * SSprojectiles.global_iterations_per_move
|
||||||
pixel_y = trajectory.return_py() - trajectory.mpy * trajectory_multiplier * SSprojectiles.global_iterations_per_move
|
pixel_y = trajectory.return_py() - trajectory.mpy * trajectory_multiplier * SSprojectiles.global_iterations_per_move
|
||||||
|
|||||||
Reference in New Issue
Block a user