Merge pull request #24745 from Cyberboss/patch-19

Fix a hallucination runtime
This commit is contained in:
oranges
2017-03-08 09:11:04 +13:00
committed by GitHub
+1 -1
View File
@@ -283,7 +283,7 @@ Gunshots/explosions/opening doors/less rare audio (done)
bubblegum = new(wall, target)
sleep(10) //ominous wait
var/charged = FALSE //only get hit once
while(get_turf(bubblegum) != landing)
while(get_turf(bubblegum) != landing && target)
bubblegum.forceMove(get_step_towards(bubblegum, landing))
bubblegum.setDir(get_dir(bubblegum, landing))
target.playsound_local(get_turf(bubblegum), 'sound/effects/meteorimpact.ogg', 150, 1)