Merge pull request #32871 from AnturK/orbitclean

Transfers orbiting ghosts on most common transforms
This commit is contained in:
Leo
2017-11-19 21:12:50 -02:00
committed by CitadelStationBot
parent ac4ca767d0
commit 61501988cb
3 changed files with 14 additions and 0 deletions
+8
View File
@@ -112,3 +112,11 @@
. = ..()
if (orbiting)
stop_orbit()
/atom/movable/proc/transfer_observers_to(atom/movable/target)
if(orbiters)
for(var/thing in orbiters)
var/datum/orbit/O = thing
if(O.orbiter && isobserver(O.orbiter))
var/mob/dead/observer/D = O.orbiter
D.ManualFollow(target)