Fixes a few runtimes (#13230)

* Fixes a few runtimes

* Fixes 2 turf related runtimes

* Return TRUE
This commit is contained in:
farie82
2020-04-10 21:18:08 -06:00
committed by GitHub
parent 31bcd39262
commit 92f2015d0e
7 changed files with 15 additions and 15 deletions
+1 -6
View File
@@ -432,13 +432,8 @@ GLOBAL_LIST_INIT(ventcrawl_machinery, list(/obj/machinery/atmospherics/unary/ven
if(!vent_found)
for(var/obj/machinery/atmospherics/machine in range(1,src))
if(is_type_in_list(machine, GLOB.ventcrawl_machinery))
if(is_type_in_list(machine, GLOB.ventcrawl_machinery) && machine.can_crawl_through())
vent_found = machine
if(!vent_found.can_crawl_through())
vent_found = null
if(vent_found)
break
if(vent_found)