From 6d6fe4555f3b96959c28f0e262e84fe28293add4 Mon Sep 17 00:00:00 2001 From: DOOM Date: Sat, 1 Jul 2023 01:36:39 -0400 Subject: [PATCH] fix --- code/_globalvars/global_lists.dm | 2 ++ code/controllers/subsystem/minimap.dm | 2 ++ code/modules/client/client_procs.dm | 5 ----- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/code/_globalvars/global_lists.dm b/code/_globalvars/global_lists.dm index f0279907f635..ecbeeb532f54 100644 --- a/code/_globalvars/global_lists.dm +++ b/code/_globalvars/global_lists.dm @@ -9,6 +9,8 @@ GLOBAL_LIST_EMPTY(CMBFaxes) GLOBAL_LIST_EMPTY(GeneralFaxes) //Inter-machine faxes GLOBAL_LIST_EMPTY(fax_contents) //List of fax contents to maintain it even if source paper is deleted +GLOBAL_LIST_EMPTY(canvas_drawings) //List of canvas drawings + GLOBAL_LIST_EMPTY(failed_fultons) //A list of fultoned items which weren't collected and fell back down GLOBAL_LIST_INIT_TYPED(custom_huds_list, /datum/custom_hud, setup_all_huds()) diff --git a/code/controllers/subsystem/minimap.dm b/code/controllers/subsystem/minimap.dm index 8883ba75b27e..59f7f1939c31 100644 --- a/code/controllers/subsystem/minimap.dm +++ b/code/controllers/subsystem/minimap.dm @@ -559,6 +559,8 @@ SUBSYSTEM_DEF(minimaps) toolbar_updated_selection = "export" var/datum/canvas_map/canvas_image = new(params["image"]) + GLOB.canvas_drawings += canvas_image + var/input = stripped_multiline_input(user, "Optional message to announce to the [MAIN_SHIP_NAME]'s crew with the tactical map", "Tactical Map Announcement", "") var/signed if(ishuman(user)) diff --git a/code/modules/client/client_procs.dm b/code/modules/client/client_procs.dm index fe76abe996a8..50a77edfb180 100644 --- a/code/modules/client/client_procs.dm +++ b/code/modules/client/client_procs.dm @@ -153,13 +153,8 @@ GLOBAL_LIST_INIT(whitelisted_client_procs, list( var/datum/canvas_map/image = locate(href_list["MapView"]) if(!istype(image)) - to_chat(usr, SPAN_WARNING("not of type datum")) return - to_chat(usr, SPAN_WARNING("passed")) - - usr << browse_rsc(image.data) - show_browser(usr, "","Map Image", "Map Image", "size=1000x1000") else if(href_list["FaxView"])