mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 12:41:09 +01:00
Makes some things that rely on atmos adjacency more sane/faster. (#54096)
* Replaces some CANATMOSPASS calls with a new define that checks if the turfs are in each others atmos adjacent list, as that's the same info that they want.
This commit is contained in:
@@ -204,7 +204,7 @@ GLOBAL_LIST_INIT(hallucination_list, list(
|
||||
for(var/turf/FT in flood_turfs)
|
||||
for(var/dir in GLOB.cardinals)
|
||||
var/turf/T = get_step(FT, dir)
|
||||
if((T in flood_turfs) || !FT.CanAtmosPass(T))
|
||||
if((T in flood_turfs) || !TURFS_CAN_SHARE(T, FT) || isspaceturf(T)) //If we've gottem already, or if they're not alright to spread with.
|
||||
continue
|
||||
var/obj/effect/plasma_image_holder/pih = new(T)
|
||||
var/image/new_plasma = image(image_icon, pih, image_state, FLY_LAYER)
|
||||
|
||||
Reference in New Issue
Block a user