Merge pull request #9945 from phil235/ExplosionThrowAnchorFix

Explosions no longer throw anchored items.
This commit is contained in:
Cheridan
2015-06-14 17:26:10 -05:00
+1 -1
View File
@@ -126,7 +126,7 @@
var/throw_dir = get_dir(epicenter,T)
for(var/obj/item/I in T)
spawn(0) //Simultaneously not one at a time
if(I)
if(I && !I.anchored)
var/throw_range = rand(throw_dist, max_range)
var/turf/throw_at = get_ranged_target_turf(I, throw_dir, throw_range)
I.throw_speed = 4 //Temporarily change their throw_speed for embedding purposes (Reset when it finishes throwing, regardless of hitting anything)