From cf390ae1ef22d37a615b6fc6b7623e237941f74a Mon Sep 17 00:00:00 2001 From: Kyle Spier-Swenson Date: Sun, 13 Sep 2015 08:35:22 -0700 Subject: [PATCH] Fixes orbiting a deleted atom sending you to null space This also handles the garbage collection issues. As far as i'm concerned, if its been qdeled, but loc isn't null, it's fair game for orbits. --- code/__HELPERS/unsorted.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/__HELPERS/unsorted.dm b/code/__HELPERS/unsorted.dm index 75c579855ad..a00e139c27a 100644 --- a/code/__HELPERS/unsorted.dm +++ b/code/__HELPERS/unsorted.dm @@ -1432,7 +1432,7 @@ B --><-- A var/angle = 0 var/matrix/initial_transform = matrix(transform) spawn - while(orbiting) + while(orbiting && orbiting.loc) loc = orbiting.loc angle += angle_increment