Space vines can no longer spread on transit turfs (#1026)

This commit is contained in:
CitadelStationBot
2017-05-18 13:18:48 -05:00
committed by Poojawa
parent 3e26a2d60f
commit 7a66ea60fb

View File

@@ -555,6 +555,10 @@
/obj/structure/spacevine/proc/spread()
var/direction = pick(GLOB.cardinal)
var/turf/stepturf = get_step(src,direction)
if(istype(stepturf, /turf/open/space/transit))
return
for(var/datum/spacevine_mutation/SM in mutations)
SM.on_spread(src, stepturf)
stepturf = get_step(src,direction) //in case turf changes, to make sure no runtimes happen