No more luacheck warnings

This commit is contained in:
ElCeejo 2022-06-17 23:51:40 -07:00 committed by GitHub
parent 13ebe1c37d
commit d193a4acbe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -211,15 +211,7 @@ function creatura.find_path(self, start, goal, obj_width, obj_height, max_open,
return
end
-- Initialize ID and data
local current_id
local current
-- Get an initial id in open set
for i, v in pairs(openSet) do
current_id = i
current = v
break
end
local current_id, current = next(openSet)
-- Find lowest f cost
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
-- Initialize ID and data
local current_id
local current
-- Get an initial id in open set
for i, v in pairs(openSet) do
current_id = i
current = v
break
end
local current_id, current = next(openSet)
-- Find lowest f cost
for i, v in pairs(openSet) do