From 68f4f1809ebd72b6330bf6ee2f57f1ffafefa7d9 Mon Sep 17 00:00:00 2001 From: PsiOmega Date: Wed, 15 Oct 2014 17:38:54 +0200 Subject: [PATCH] AI PDA tapping fix An AI should no longer tap on a non-existing screen with its non-existing fingers while writing PDA messages. --- code/game/objects/items/devices/PDA/PDA.dm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code/game/objects/items/devices/PDA/PDA.dm b/code/game/objects/items/devices/PDA/PDA.dm index d3a907a40a..69f4922bb9 100755 --- a/code/game/objects/items/devices/PDA/PDA.dm +++ b/code/game/objects/items/devices/PDA/PDA.dm @@ -225,7 +225,7 @@ var/global/list/obj/item/device/pda/PDAs = list() if (!c) // if the user hasn't selected a PDA file we can't send a message return var/selected = plist[c] - create_message(usr, selected) + create_message(usr, selected, 0) /obj/item/device/pda/ai/verb/cmd_toggle_pda_receiver() @@ -879,9 +879,9 @@ var/global/list/obj/item/device/pda/PDAs = list() id.loc = get_turf(src) id = null -/obj/item/device/pda/proc/create_message(var/mob/living/U = usr, var/obj/item/device/pda/P) - - U.visible_message("[U] taps on \his PDA's screen.") +/obj/item/device/pda/proc/create_message(var/mob/living/U = usr, var/obj/item/device/pda/P, var/tap = 1) + if(tap) + U.visible_message("[U] taps on \his PDA's screen.") U.last_target_click = world.time var/t = input(U, "Please enter message", name, null) as text t = copytext(sanitize(t), 1, MAX_MESSAGE_LEN)