Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DOOM committed Jul 1, 2023
1 parent 03951dc commit 6d6fe45
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 2 additions & 0 deletions code/_globalvars/global_lists.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down
2 changes: 2 additions & 0 deletions code/controllers/subsystem/minimap.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
5 changes: 0 additions & 5 deletions code/modules/client/client_procs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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, "<img src=[image.data] height=1000 width=1000>","Map Image", "Map Image", "size=1000x1000")

else if(href_list["FaxView"])
Expand Down

0 comments on commit 6d6fe45

Please sign in to comment.