From 4b350214a944a2c337cc02ec4ca033a2751df310 Mon Sep 17 00:00:00 2001 From: Albert Iordache Date: Sun, 15 Jul 2012 12:50:27 +0300 Subject: [PATCH] Fixed two runtimes errors (AI eye and artifacts) --- code/game/machinery/camera.dm | 2 +- code/modules/research/xenoarchaeology/artifact_effect.dm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/game/machinery/camera.dm b/code/game/machinery/camera.dm index 7c49605480c..4837a92833b 100644 --- a/code/game/machinery/camera.dm +++ b/code/game/machinery/camera.dm @@ -130,7 +130,7 @@ sleep(40) //because we're sleeping another second after this (a few lines down) continue - if(client.eye == eyeobj) + if(client && client.eye == eyeobj) if(checkcameravis(target)) eyeobj.loc = target.loc sleep(50) diff --git a/code/modules/research/xenoarchaeology/artifact_effect.dm b/code/modules/research/xenoarchaeology/artifact_effect.dm index f1022521414..16a91a4dd3d 100644 --- a/code/modules/research/xenoarchaeology/artifact_effect.dm +++ b/code/modules/research/xenoarchaeology/artifact_effect.dm @@ -195,7 +195,7 @@ user << "\red You are suddenly zapped away elsewhere!" user.loc = pick(randomturfs) var/datum/effect/effect/system/spark_spread/sparks = new /datum/effect/effect/system/spark_spread() - sparks.set_up(3, 0, get_turf(src)) //no idea what the 0 is + sparks.set_up(3, 0, get_turf(originator)) //no idea what the 0 is sparks.start() return 1 else if (src.effectmode == "aura")