Fixes a bunch of bugs (#31687)

Fixes #13784 by forcing all orbits to update if the lowest stacked one updates
Fixes #21573 by making singularity try to move if it can't expand
Fixes #23306 by making simple bots that are off not able to move
Fixes #28274, fixes #26515 by actually making snipers zoom out
This commit is contained in:
kevinz000
2017-10-16 21:12:32 +13:00
committed by oranges
parent 8951bd587e
commit 2a43a4f657
6 changed files with 35 additions and 24 deletions
+3 -3
View File
@@ -19,8 +19,6 @@
Check()
lock = _lock
//do not qdel directly, use stop_orbit on the orbiter. (This way the orbiter can bind to the orbit stopping)
/datum/orbit/Destroy(force = FALSE)
SSorbit.processing -= src
@@ -54,7 +52,9 @@
orbiter.loc = targetloc
orbiter.update_parallax_contents()
lastloc = orbiter.loc
for(var/other_orbit in orbiter.orbiters)
var/datum/orbit/OO = other_orbit
OO.Check(targetloc)
/atom/movable/var/datum/orbit/orbiting = null
/atom/var/list/orbiters = null