Skip to content

Commit

Permalink
tacmap
Browse files Browse the repository at this point in the history
  • Loading branch information
doom committed Sep 26, 2023
1 parent a8487fa commit c75b1e5
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions code/controllers/subsystem/minimap.dm
Original file line number Diff line number Diff line change
Expand Up @@ -552,14 +552,9 @@ SUBSYSTEM_DEF(minimaps)
/datum/tacmap/ui_data(mob/user)
var/list/data = list()

data["flatImage"] = null
data["flatImage"] = get_current_map(user, TRUE)
data["svgData"] = null

current_map = get_current_map(user)
if(current_map)
data["flatImage"] = current_map.flat_tacmap
data["svgData"] = current_map.svg_data

data["mapRef"] = map_holder.map_ref
data["toolbarColorSelection"] = toolbar_color_selection
data["toolbarUpdatedSelection"] = toolbar_updated_selection
Expand All @@ -568,6 +563,11 @@ SUBSYSTEM_DEF(minimaps)
data["nextCanvasTime"] = canvas_cooldown_time
data["updatedCanvas"] = updated_canvas

current_map = get_current_map(user)
if(current_map)
data["flatImage"] = current_map.flat_tacmap
data["svgData"] = current_map.svg_data

return data

/datum/tacmap/ui_static_data(mob/user)
Expand All @@ -586,6 +586,7 @@ SUBSYSTEM_DEF(minimaps)
if(ishuman(user) && skillcheck(user, SKILL_LEADERSHIP, SKILL_LEAD_EXPERT) || isqueen(user) && xeno_user.hivenumber == XENO_HIVE_NORMAL)
data["canDraw"] = TRUE
data["canViewHome"] = TRUE
distribute_current_map_png(user)

return data

Expand Down

0 comments on commit c75b1e5

Please sign in to comment.