[MIRROR] Cleans up some unused procs and makes is_blocked_turf a turf proc. (#136)

* Cleans up some unused procs and makes is_blocked_turf a turf proc. (#52482)

* Cleans up some unused procs and makes is_blocked_turf a turf proc.

* Update code/game/turfs/turf.dm

Co-authored-by: Rohesie <rohesie@gmail.com>

Co-authored-by: Rohesie <rohesie@gmail.com>

* Cleans up some unused procs and makes is_blocked_turf a turf proc.

Co-authored-by: ShizCalev <ShizCalev@users.noreply.github.com>
Co-authored-by: Rohesie <rohesie@gmail.com>
This commit is contained in:
SkyratBot
2020-07-31 00:30:27 +02:00
committed by GitHub
co-authored by Rohesie ShizCalev
parent b7e1bd1973
commit 284f2de8a1
26 changed files with 50 additions and 95 deletions
+2 -2
View File
@@ -640,7 +640,7 @@ SUBSYSTEM_DEF(job)
//last hurrah
var/list/avail = list()
for(var/turf/T in A)
if(!is_blocked_turf(T, TRUE))
if(!T.is_blocked_turf(TRUE))
avail += T
if(avail.len)
destination = pick(avail)
@@ -651,7 +651,7 @@ SUBSYSTEM_DEF(job)
var/list/arrivals_turfs = shuffle(get_area_turfs(/area/shuttle/arrival))
if(arrivals_turfs.len)
for(var/turf/T in arrivals_turfs)
if(!is_blocked_turf(T, TRUE))
if(!T.is_blocked_turf(TRUE))
T.JoinPlayerHere(M, FALSE)
return TRUE
//last chance, pick ANY spot on arrivals and dump em
+1 -1
View File
@@ -41,7 +41,7 @@ SUBSYSTEM_DEF(minor_mapping)
for(var/z in SSmapping.levels_by_trait(ZTRAIT_STATION))
all_turfs += block(locate(1,1,z), locate(world.maxx,world.maxy,z))
for(var/turf/open/floor/plating/T in all_turfs)
if(is_blocked_turf(T))
if(T.is_blocked_turf())
continue
if(locate(/obj/structure/cable) in T)
exposed_wires += T