Merge pull request #11043 from VOREStation/Arokha/uavview

Make UAVs not work at impossible distances
This commit is contained in:
Aronai Sieyes
2021-07-12 19:45:34 -04:00
committed by Chompstation Bot
parent 796c58e062
commit 85b0fbdd30
4 changed files with 37 additions and 11 deletions

View File

@@ -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)