mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 04:30:44 +01:00
Fixes incorrect usage of world.view or viewers() in some places (#95558)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user