From 78e700f2f004ef27d0fec9f7f02c4da3e8ac855f Mon Sep 17 00:00:00 2001 From: Halonexus Date: Thu, 2 May 2024 17:27:34 +0300 Subject: [PATCH] update Update --- code/modules/mob/living/simple_animal/hostile/hostile.dm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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)