Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Update
  • Loading branch information
Halonexus committed May 2, 2024
1 parent 9a2bbfe commit 78e700f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions code/modules/mob/living/simple_animal/hostile/hostile.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 78e700f

Please sign in to comment.