1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-09-02 16:49:46 +02:00

Fix data test test_activities

Actually GoTo ignores z axis (up),
It looks position which is targetted by
character is some kind of hole or slope.
This commit is contained in:
Filip Gawin 2018-07-13 18:52:10 +02:00
parent 83ee9ef568
commit 9bc606d96d

View File

@ -51,8 +51,10 @@ BOOST_AUTO_TEST_CASE(test_activities) {
Global::get().e->dynamicsWorld->stepSimulation(1.f / 60.f);
}
BOOST_CHECK_LT(
glm::distance(character->getPosition(), {10.f, 10.f, 0.f}), 0.1f);
// Actually GoTo ignores z axis (up)
BOOST_CHECK_LT(glm::distance(glm::vec2{character->getPosition()},
{10.f, 10.f}),
0.1f);
Global::get().e->destroyObject(character);
}