mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-28 08:37:12 +00:00
Pass options to findPath
This commit is contained in:
parent
9410eed9e5
commit
c04d869fc7
@ -81,7 +81,7 @@ testing.registerLocalTest('findPath',
|
|||||||
},
|
},
|
||||||
destinationTolerance = 1,
|
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.expectEqual(status, nearby.FIND_PATH_STATUS.Success, 'Status')
|
||||||
testing.expectLessOrEqual((path[path:size()] - dst):length(), 1, 'Last path point')
|
testing.expectLessOrEqual((path[path:size()] - dst):length(), 1, 'Last path point')
|
||||||
end)
|
end)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user