mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-03 05:51:56 +00:00
Fixing fax machine UI runtime. (#8293)
This commit is contained in:
@@ -34,7 +34,7 @@ var/list/admin_departments
|
||||
if( !(("[department]" in alldepartments) || ("[department]" in admin_departments)) )
|
||||
alldepartments |= department
|
||||
|
||||
/obj/machinery/photocopier/faxmachine/vueui_data_change(var/list/list/newdata, var/mob/user, var/datum/vueui/ui)
|
||||
/obj/machinery/photocopier/faxmachine/vueui_data_change(var/list/newdata, var/mob/user, var/datum/vueui/ui)
|
||||
// Build baseline data, that's read-only
|
||||
if(!newdata)
|
||||
. = newdata = list("destination" = "[current_map.boss_name]", "idname" = "", "paper" = "")
|
||||
@@ -47,9 +47,8 @@ var/list/admin_departments
|
||||
VUEUI_SET_CHECK(newdata["idname"], "", ., newdata)
|
||||
VUEUI_SET_CHECK(newdata["paper"], (copyitem ? copyitem.name : ""), ., newdata)
|
||||
|
||||
if(newdata["alertpdas"] && alert_pdas && newdata["alertpdas"].len != alert_pdas.len)
|
||||
. = newdata
|
||||
newdata["alertpdas"].Cut()
|
||||
VUEUI_SET_CHECK_LIST(newdata["alertpdas"], alert_pdas, ., newdata)
|
||||
newdata["alertpdas"] = list()
|
||||
if (alert_pdas && alert_pdas.len)
|
||||
for (var/obj/item/device/pda/pda in alert_pdas)
|
||||
newdata["alertpdas"] += list(list("name" = "[alert_pdas[pda]]", "ref" = "\ref[pda]"))
|
||||
|
||||
Reference in New Issue
Block a user