mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 19:47:22 +01:00
fixes hitscan projectiles runtiming when reaching the edge of the map (#25853)
This commit is contained in:
@@ -359,6 +359,8 @@
|
||||
trajectory.increment(trajectory_multiplier)
|
||||
var/turf/T = trajectory.return_turf()
|
||||
if(!istype(T))
|
||||
// if we've gone off of the map, we need to step back once so that hitscanning projectiles have a valid end turf
|
||||
trajectory.increment(-trajectory_multiplier)
|
||||
qdel(src)
|
||||
return
|
||||
if(T.z != loc.z)
|
||||
|
||||
Reference in New Issue
Block a user