Merge pull request #5865 from Citadel-Station-13/upstream-merge-36073

[MIRROR] [READY AND TESTED]Projectiles now properly delete themselves if they try to move and their trajectory is at an invalid turf
This commit is contained in:
LetterJay
2018-03-09 04:53:41 -06:00
committed by GitHub
+3
View File
@@ -419,6 +419,9 @@
transform = M
trajectory.increment(trajectory_multiplier)
var/turf/T = trajectory.return_turf()
if(!istype(T))
qdel(src)
return
if(T.z != loc.z)
var/old = loc
before_z_change(loc, T)