mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Fix missing y
This commit is contained in:
parent
19014c9c47
commit
30e6821d81
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ testing.registerLocalTest('Guard in Imperial Prison Ship should find path (#7241
|
||||||
}
|
}
|
||||||
local status, path = nearby.findPath(src, dst, options)
|
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((util.vector2(path[#path].x, path[#path]) - util.vector2(dst.x, dst.y)):length(), 1, 'Last path point x, y')
|
testing.expectLessOrEqual((util.vector2(path[#path].x, path[#path].y) - util.vector2(dst.x, dst.y)):length(), 1, 'Last path point x, y')
|
||||||
testing.expectLessOrEqual(path[#path].z - dst.z, 20, 'Last path point z')
|
testing.expectLessOrEqual(path[#path].z - dst.z, 20, 'Last path point z')
|
||||||
if agentBounds.shapeType == nearby.COLLISION_SHAPE_TYPE.Aabb then
|
if agentBounds.shapeType == nearby.COLLISION_SHAPE_TYPE.Aabb then
|
||||||
testing.expectThat(path, testing.elementsAreArray({
|
testing.expectThat(path, testing.elementsAreArray({
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue