X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=tst%2Fnet%2FPacketTest.cpp;fp=tst%2Fnet%2FPacketTest.cpp;h=248bb61e07e7df6ac1aa360e79821f2e2367b1ce;hb=eb33e7e14fb650b45800ca94c2344784be60c595;hp=9759bfcaa73d3af82efd3fbebb596e049fb7eb53;hpb=b4e5dad2ed5c7e77573de413f3bf5be88577856d;p=blank.git diff --git a/tst/net/PacketTest.cpp b/tst/net/PacketTest.cpp index 9759bfc..248bb61 100644 --- a/tst/net/PacketTest.cpp +++ b/tst/net/PacketTest.cpp @@ -215,7 +215,6 @@ void PacketTest::testSpawnEntity() { write_state.chunk_pos = { 7, 2, -3 }; write_state.block_pos = { 1.5f, 0.9f, 12.0f }; write_state.velocity = { 0.025f, 0.001f, 0.0f }; - write_state.orient = { 1.0f, 0.0f, 0.0f, 0.0f }; write_state.pitch = 0.3f; write_state.yaw = -2.3f; write_entity.SetState(write_state); @@ -307,7 +306,6 @@ void PacketTest::testEntityUpdate() { write_state.chunk_pos = { 7, 2, -3 }; write_state.block_pos = { 1.5f, 0.9f, 12.0f }; write_state.velocity = { 0.025f, 0.001f, 0.0f }; - write_state.orient = { 1.0f, 0.0f, 0.0f, 0.0f }; write_state.pitch = 0.3f; write_state.yaw = -2.3f; write_entity.SetState(write_state); @@ -347,7 +345,6 @@ void PacketTest::testPlayerCorrection() { write_state.chunk_pos = { 7, 2, -3 }; write_state.block_pos = { 1.5f, 0.9f, 12.0f }; write_state.velocity = { 0.025f, 0.001f, 0.0f }; - write_state.orient = { 1.0f, 0.0f, 0.0f, 0.0f }; write_state.pitch = 0.3f; write_state.yaw = -2.3f; write_entity.SetState(write_state); @@ -682,19 +679,19 @@ void PacketTest::AssertEqual( ) { CPPUNIT_ASSERT_DOUBLES_EQUAL_MESSAGE( message + " (W component)", - expected.w, actual.w, numeric_limits::epsilon() + expected.w, actual.w, (1.0f / 32767.0f) ); CPPUNIT_ASSERT_DOUBLES_EQUAL_MESSAGE( message + " (X component)", - expected.x, actual.x, numeric_limits::epsilon() + expected.x, actual.x, (1.0f / 32767.0f) ); CPPUNIT_ASSERT_DOUBLES_EQUAL_MESSAGE( message + " (Y component)", - expected.y, actual.y, numeric_limits::epsilon() + expected.y, actual.y, (1.0f / 32767.0f) ); CPPUNIT_ASSERT_DOUBLES_EQUAL_MESSAGE( message + " (Z component)", - expected.z, actual.z, numeric_limits::epsilon() + expected.z, actual.z, (1.0f / 32767.0f) ); }