1
0
Fork 0
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:
elsid 2023-07-16 17:29:34 +02:00
parent 9410eed9e5
commit c04d869fc7
No known key found for this signature in database
GPG key ID: 4DE04C198CBA7625

View file

@ -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)