From f8be6e24e9d6185c7c974b8f57a420912de947ee Mon Sep 17 00:00:00 2001 From: cron Date: Sat, 21 Nov 2020 20:08:53 +0000 Subject: [PATCH] autofly: autotp support position and waypoint --- clientmods/autofly/init.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clientmods/autofly/init.lua b/clientmods/autofly/init.lua index 170194d24..1f5da5bc6 100644 --- a/clientmods/autofly/init.lua +++ b/clientmods/autofly/init.lua @@ -269,6 +269,8 @@ function autofly.autotp(tpname) local tpos=nil if tpname == nil then tpos = autofly.get_waypoint('AUTOTP') + elseif type(tpname) == "table" then + tpos = tpname else tpos=autofly.get_waypoint(tpname) end