From d57e5aa2842db27f9deb907563b287d995686695 Mon Sep 17 00:00:00 2001 From: MrStonedOne Date: Fri, 2 Oct 2015 08:33:18 -0700 Subject: [PATCH] Ghost orbit: Replaces a spawn with a sleep and adds a post-sleep check --- code/modules/mob/dead/observer/observer.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/modules/mob/dead/observer/observer.dm b/code/modules/mob/dead/observer/observer.dm index fa48cec8c55..8aff7d634e1 100644 --- a/code/modules/mob/dead/observer/observer.dm +++ b/code/modules/mob/dead/observer/observer.dm @@ -223,7 +223,8 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp ..() //restart our floating animation after orbit is done. pixel_y = 0 - spawn (2) //orbit sets up a 2ds animation when it finishes, so we wait for that to end + sleep 2 //orbit sets up a 2ds animation when it finishes, so we wait for that to end + if (!orbiting) //make sure another orbit hasn't started animate(src, pixel_y = 2, time = 10, loop = -1) /mob/dead/observer/verb/jumptomob() //Moves the ghost instead of just changing the ghosts's eye -Nodrak