From 51b5a6585ccd4f556bfeb99e5fcf6db7e813e4a3 Mon Sep 17 00:00:00 2001 From: lbnesquik Date: Sun, 14 Oct 2018 09:33:37 +0200 Subject: [PATCH] Prevent people from removing papers from any distances. --- code/modules/paperwork/faxmachine.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/modules/paperwork/faxmachine.dm b/code/modules/paperwork/faxmachine.dm index a2b72cd2b4..a5960612f4 100644 --- a/code/modules/paperwork/faxmachine.dm +++ b/code/modules/paperwork/faxmachine.dm @@ -78,6 +78,9 @@ var/list/adminfaxes = list() //cache for faxes that have been sent to admins else if(href_list["remove"]) if(copyitem) + if(get_dist(usr, src) >= 2) + to_chat(usr, "\The [copyitem] is too far away for you to remove it.") + return copyitem.loc = usr.loc usr.put_in_hands(copyitem) to_chat(usr, "You take \the [copyitem] out of \the [src].")