From 7f18d508ea3e09261578d039bf3ac3dde05043ea Mon Sep 17 00:00:00 2001 From: Leshana Date: Mon, 30 Mar 2020 19:16:35 -0400 Subject: [PATCH] Fixes Runtime in turf.dm,205: undefined variable /turf/simulated/floor/tiled/var/movement_type - Please do not call turf.Enter(another_turf). My best guess is it wants to check the spread of a "cloud" of splatter, so air_canblock should be ok. --- code/modules/hydroponics/seed.dm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/code/modules/hydroponics/seed.dm b/code/modules/hydroponics/seed.dm index ccd12729c4b..548068fe684 100644 --- a/code/modules/hydroponics/seed.dm +++ b/code/modules/hydroponics/seed.dm @@ -229,6 +229,7 @@ open_turfs |= origin_turf // Flood fill to get affected turfs. + // NOTE: Halfass bugfix implemented using air_blocked() but this really should be redone completely ~Leshana while(open_turfs.len) var/turf/T = pick(open_turfs) open_turfs -= T @@ -246,11 +247,11 @@ var/no_los var/turf/last_turf = origin_turf for(var/turf/target_turf in getline(origin_turf,neighbor)) - if(!last_turf.Enter(target_turf) || target_turf.density) + if(air_master.air_blocked(last_turf, target_turf)) no_los = 1 break last_turf = target_turf - if(!no_los && !origin_turf.Enter(neighbor)) + if(!no_los && air_master.air_blocked(origin_turf, neighbor)) no_los = 1 if(no_los) closed_turfs |= neighbor