mirror of
https://github.com/ElCeejo/creatura.git
synced 2025-04-30 13:51:41 -04:00
No more luacheck warnings
This commit is contained in:
parent
13ebe1c37d
commit
d193a4acbe
1 changed files with 2 additions and 18 deletions
|
@ -211,15 +211,7 @@ function creatura.find_path(self, start, goal, obj_width, obj_height, max_open,
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
-- Initialize ID and data
|
-- Initialize ID and data
|
||||||
local current_id
|
local current_id, current = next(openSet)
|
||||||
local current
|
|
||||||
|
|
||||||
-- Get an initial id in open set
|
|
||||||
for i, v in pairs(openSet) do
|
|
||||||
current_id = i
|
|
||||||
current = v
|
|
||||||
break
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Find lowest f cost
|
-- Find lowest f cost
|
||||||
for i, v in pairs(openSet) do
|
for i, v in pairs(openSet) do
|
||||||
|
@ -430,15 +422,7 @@ function creatura.find_theta_path(self, start, goal, obj_width, obj_height, max_
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Initialize ID and data
|
-- Initialize ID and data
|
||||||
local current_id
|
local current_id, current = next(openSet)
|
||||||
local current
|
|
||||||
|
|
||||||
-- Get an initial id in open set
|
|
||||||
for i, v in pairs(openSet) do
|
|
||||||
current_id = i
|
|
||||||
current = v
|
|
||||||
break
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Find lowest f cost
|
-- Find lowest f cost
|
||||||
for i, v in pairs(openSet) do
|
for i, v in pairs(openSet) do
|
||||||
|
|
Loading…
Add table
Reference in a new issue