Fix flycontroller bug #134

This commit is contained in:
Joachim Stolberg 2023-06-09 13:26:54 +02:00
parent a7449c86ab
commit e9ddfee834

View File

@ -12,6 +12,7 @@
]]-- ]]--
local MAX_NUM = 128
local marker = {} local marker = {}
local MarkedNodes = {} -- t[player] = {{entity, pos},...} local MarkedNodes = {} -- t[player] = {{entity, pos},...}
@ -59,7 +60,7 @@ function marker.get_poslist(name)
for _,item in ipairs(MarkedNodes[name] or {}) do for _,item in ipairs(MarkedNodes[name] or {}) do
table.insert(lst, item.pos) table.insert(lst, item.pos)
idx = idx + 1 idx = idx + 1
if idx >= 16 then break end if idx >= MAX_NUM then break end
end end
return lst return lst
end end