mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Merge pull request #11043 from VOREStation/Arokha/uavview
Make UAVs not work at impossible distances
This commit is contained in:
committed by
Chompstation Bot
parent
796c58e062
commit
85b0fbdd30
@@ -840,7 +840,11 @@ Turf and target are seperate in case you want to teleport some distance from a t
|
||||
//Move the objects. Not forceMove because the object isn't "moving" really, it's supposed to be on the "same" turf.
|
||||
for(var/obj/O in T)
|
||||
O.loc = X
|
||||
O.update_light()
|
||||
if(O.light_system == STATIC_LIGHT)
|
||||
O.update_light()
|
||||
else
|
||||
var/datum/component/overlay_lighting/OL = O.GetComponent(/datum/component/overlay_lighting)
|
||||
OL?.on_parent_moved(O, T, O.dir, TRUE)
|
||||
if(z_level_change) // The objects still need to know if their z-level changed.
|
||||
O.onTransitZ(T.z, X.z)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user