X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=tst%2Fnet%2FPacketTest.cpp;h=464c9d6ba6de912de87b511e3b627a58d006d257;hb=54f3f1260b95a924fcb40d9d6de3fa2e2c382f6f;hp=751421b2f9bcb351090c34776ea4c777adbceec9;hpb=933ca0fe6c660e482edd45742d981f2de59a32df;p=blank.git diff --git a/tst/net/PacketTest.cpp b/tst/net/PacketTest.cpp index 751421b..464c9d6 100644 --- a/tst/net/PacketTest.cpp +++ b/tst/net/PacketTest.cpp @@ -1,6 +1,6 @@ #include "PacketTest.hpp" -#include "model/CompositeModel.hpp" +#include "model/Model.hpp" #include "world/Entity.hpp" CPPUNIT_TEST_SUITE_REGISTRATION(blank::test::PacketTest); @@ -45,8 +45,7 @@ void PacketTest::testSizes() { } void PacketTest::testControl() { - Packet::TControl ctrl; - ctrl.ack = 10; + Packet::TControl ctrl{ 0, 10, 0 }; CPPUNIT_ASSERT_MESSAGE( "TControl should ack the packet in the ack field", @@ -230,7 +229,7 @@ void PacketTest::testSpawnEntity() { Entity write_entity; write_entity.ID(534574); - CompositeModel model; + Model model; model.ID(23); model.Instantiate(write_entity.GetModel()); write_entity.GetState().chunk_pos = { 7, 2, -3 };