Fixes an issue where toggling camera lights would disconnect the AI from an active holopad while keeping the pad online.

This commit is contained in:
PsiOmega
2014-08-26 16:20:02 +02:00
parent cbf3d79ea1
commit 0090efb210
5 changed files with 31 additions and 33 deletions

View File

@@ -96,8 +96,8 @@
/obj/item/weapon/paper/attack_ai(var/mob/living/silicon/ai/user as mob)
var/dist
if(istype(user) && user.current) //is AI
dist = get_dist(src, user.current)
if(istype(user) && user.camera) //is AI
dist = get_dist(src, user.camera)
else //cyborg or AI not seeing through a camera
dist = get_dist(src, user)
if(dist < 2)
@@ -113,7 +113,7 @@
user.visible_message("<span class='notice'>You show the paper to [M]. </span>", \
"<span class='notice'> [user] holds up a paper and shows it to [M]. </span>")
M << examine()
else if(user.zone_sel.selecting == "mouth") // lipstick wiping
if(ishuman(M))
var/mob/living/carbon/human/H = M