Skip to content

Commit

Permalink
map: add option to enforce route-arrow
Browse files Browse the repository at this point in the history
  • Loading branch information
shagu committed Jan 4, 2024
1 parent e0ba851 commit fa6d5dc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion map.lua
Original file line number Diff line number Diff line change
Expand Up @@ -716,6 +716,7 @@ function pfMap:UpdateNode(frame, node, color, obj)
frame.quest = tab.quest
frame.qlvl = tab.qlvl
frame.itemreq = tab.itemreq
frame.arrow = tab.arrow

if pfQuest_config["spawncolors"] == "1" then
frame.color = tab.spawn or tab.title
Expand Down Expand Up @@ -811,7 +812,8 @@ function pfMap:UpdateNodes()
if ( pfQuest_config["routecluster"] == "1" and pfMap.pins[i].layer >= 9 ) or
( pfQuest_config["routeender"] == "1" and pfMap.pins[i].layer == 4) or
( pfQuest_config["routestarter"] == "1" and pfMap.pins[i].layer == 1 and pfMap.pins[i].texture) or
( pfQuest_config["routestarter"] == "1" and pfMap.pins[i].layer == 2)
( pfQuest_config["routestarter"] == "1" and pfMap.pins[i].layer == 2) or
pfMap.pins[i].arrow == true
then
pfQuest.route:AddPoint({ x, y, pfMap.pins[i] })
end
Expand Down

0 comments on commit fa6d5dc

Please sign in to comment.