From 67323c8309e25f26ffc270fc9584ad2c0a3970d6 Mon Sep 17 00:00:00 2001 From: Krausus Date: Sat, 16 May 2015 06:16:16 -0400 Subject: [PATCH] Fixes clientless pAI booping runtime pAIs without an active client can now be booped back into their card form. --- code/modules/mob/living/silicon/pai/pai.dm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/code/modules/mob/living/silicon/pai/pai.dm b/code/modules/mob/living/silicon/pai/pai.dm index fdef89d6865..ae26734975f 100644 --- a/code/modules/mob/living/silicon/pai/pai.dm +++ b/code/modules/mob/living/silicon/pai/pai.dm @@ -457,8 +457,9 @@ if(istype(T)) T.visible_message("[src] neatly folds inwards, compacting down to a rectangular card.") src.stop_pulling() - src.client.perspective = EYE_PERSPECTIVE - src.client.eye = card + if(src.client) + src.client.perspective = EYE_PERSPECTIVE + src.client.eye = card //This seems redundant but not including the forced loc setting messes the behavior up. src.loc = card