Fix flycontroller bug #134
This commit is contained in:
parent
a7449c86ab
commit
e9ddfee834
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user