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.
This commit is contained in:
Kyle Spier-Swenson
2015-09-13 08:35:22 -07:00
parent 144402c8c7
commit cf390ae1ef
+1 -1
View File
@@ -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