Skip to content

Commit

Permalink
Glide size is consistent when orbiting (#473)
Browse files Browse the repository at this point in the history
  • Loading branch information
EgorDinamit authored Sep 3, 2023
1 parent 3dcdeb5 commit def5642
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/datums/orbit.dm
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
var/lastprocess
var/matrix/init_transform

/datum/orbit/New(atom/movable/_orbiter, var/atom/_orbiting, _lock)
/datum/orbit/New(atom/movable/_orbiter, atom/_orbiting, _lock)
orbiter = _orbiter
orbiting = _orbiting
init_transform = _orbiter.transform
Expand Down Expand Up @@ -59,6 +59,8 @@
orbiter.stop_orbit()
return
orbiter.loc = targetloc
if(istype(orbiting, /atom/movable))
orbiter.glide_size = AM.glide_size
//TODO-LESH-DEL orbiter.update_parallax_contents()
orbiter.update_light()
lastloc = orbiter.loc
Expand Down

0 comments on commit def5642

Please sign in to comment.