From fa6d5dca686323316b682f72fb5ab00e5aa3d4e7 Mon Sep 17 00:00:00 2001 From: shagu Date: Thu, 4 Jan 2024 14:22:52 +0100 Subject: [PATCH] map: add option to enforce route-arrow --- map.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/map.lua b/map.lua index 1cc0f61..18a5c15 100644 --- a/map.lua +++ b/map.lua @@ -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 @@ -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