Fixes incorrect usage of world.view or viewers() in some places (#95558)

This commit is contained in:
SmArtKar
2026-03-30 20:07:36 -04:00
committed by GitHub
parent e3971e8bff
commit b77d459820
10 changed files with 17 additions and 8 deletions
@@ -105,7 +105,7 @@
/turf/open/mirage/Initialize(mapload)
. = ..()
if(isnull(range))
range = world.view
range = (maxviewdist() - 1) / 2
var/used_z = target_turf_z || z //if target z is not defined, use ours
var/turf/target = locate(offset ? target_turf_x + x : target_turf_x, offset ? target_turf_y + y : target_turf_y, used_z)
AddElement(/datum/element/mirage_border, target, dir, range)