Is a little convoluted but this removes the last X: use in supermatter.dm

This commit is contained in:
PsiOmega
2014-07-31 14:24:39 +02:00
parent ba247ffa40
commit da4dd93e75

View File

@@ -333,7 +333,11 @@
if(is_type_in_list(X, uneatable)) continue
if(((X) && (!istype(X,/mob/living/carbon/human))))
step_towards(X,src)
if(!X:anchored) //unanchored objects pulled twice as fast
if(istype(X, /obj)) //unanchored objects pulled twice as fast
var/obj/O = X
if(!O.anchored)
step_towards(X,src)
else
step_towards(X,src)
if(istype(X, /obj/structure/window)) //shatter windows
var/obj/structure/window/W = X