mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-28 16:39:43 +00:00
Pass options to findPath
This commit is contained in:
parent
9410eed9e5
commit
c04d869fc7
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ testing.registerLocalTest('findPath',
|
|||
},
|
||||
destinationTolerance = 1,
|
||||
}
|
||||
local status, path = nearby.findPath(src, dst)
|
||||
local status, path = nearby.findPath(src, dst, options)
|
||||
testing.expectEqual(status, nearby.FIND_PATH_STATUS.Success, 'Status')
|
||||
testing.expectLessOrEqual((path[path:size()] - dst):length(), 1, 'Last path point')
|
||||
end)
|
||||
|
|
Loading…
Reference in a new issue