[MIRROR] makes get_hearers_in_view() faster AGAIN, fixes issue with previous optimization (#6979)

* makes get_hearers_in_view() faster AGAIN, fixes issue with previous optimization

* Mirror!

Co-authored-by: Kylerace <kylerlumpkin1@gmail.com>
Co-authored-by: Funce <funce.973@gmail.com>
This commit is contained in:
SkyratBot
2021-07-19 20:15:59 +12:00
committed by GitHub
co-authored by Kylerace Funce
parent 536cc0f793
commit f593849ce5
27 changed files with 128 additions and 109 deletions
+3 -4
View File
@@ -730,10 +730,9 @@
var/turf/T = thing
if(!T || !istype(T.loc, area_type))
continue
for (var/thing2 in T)
var/atom/movable/AM = thing2
if (length(AM.client_mobs_in_contents))
AM.update_parallax_contents()
for (var/atom/movable/movable as anything in T)
if (length(movable.client_mobs_in_contents))
movable.update_parallax_contents()
/obj/docking_port/mobile/proc/check_transit_zone()
if(assigned_transit)