diff --git a/code/modules/mob/living/simple_animal/hostile/hostile.dm b/code/modules/mob/living/simple_animal/hostile/hostile.dm index 408b34263eed..6ef97eeb08b2 100644 --- a/code/modules/mob/living/simple_animal/hostile/hostile.dm +++ b/code/modules/mob/living/simple_animal/hostile/hostile.dm @@ -314,10 +314,9 @@ var/static/hostile_machines = typecacheof(list(/obj/machinery/porta_turret, /obj/vehicle/sealed/mecha)) - for(var/turf/open/T in RANGE_TURFS(max_range, targets_from)) - for(var/obj/O in T) - if(is_type_in_typecache(O, hostile_machines) && can_see(targets_from, O, max_range)) - . += O + for(var/obj/O in oview(max_range, targets_from)) + if(is_type_in_typecache(O, hostile_machines)) + . += O else . = oview(max_range, targets_from)