From 19368f625992b741529c908e23374d117e685a75 Mon Sep 17 00:00:00 2001 From: Aaron Kimbrell Date: Tue, 10 Nov 2026 11:39:43 -0600 Subject: [PATCH] fix: adapt main's place model response test to the message struct Co-Authored-By: Claude Opus 5.5 --- tests/dGameTests/dGameMessagesTests/GameMessageTests.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/dGameTests/dGameMessagesTests/GameMessageTests.cpp b/tests/dGameTests/dGameMessagesTests/GameMessageTests.cpp index c80fb5a8f..4a50da384 100644 --- a/tests/dGameTests/dGameMessagesTests/GameMessageTests.cpp +++ b/tests/dGameTests/dGameMessagesTests/GameMessageTests.cpp @@ -3,6 +3,7 @@ #include "AMFDeserialize.h" #include "ClientPackets.h" #include "GameMessages.h" +#include "PropertyMessages.h" #include "GameDependencies.h" #include @@ -96,7 +97,12 @@ TEST_F(GameMessageTests, SendBlueprintLoadItemResponse) { */ TEST_F(GameMessageTests, SendPlaceModelResponse) { const NiQuaternion rotation = NiQuaternion(0.5f, 0.1f, 0.2f, 0.3f); // w, x, y, z - GameMessages::SendPlaceModelResponse(77, UNASSIGNED_SYSTEM_ADDRESS, NiPoint3(1.0f, 2.0f, 3.0f), LWOOBJID_EMPTY, 14, rotation); + GameMessages::PlaceModelResponse msg; + msg.target = 77; + msg.position = NiPoint3(1.0f, 2.0f, 3.0f); + msg.response = 14; + msg.rotation = rotation; + msg.Send(UNASSIGNED_SYSTEM_ADDRESS); auto* bitStream = static_cast(Game::server)->GetMostRecentBitStream(); ASSERT_NE(bitStream, nullptr); bitStream->IgnoreBits(64); // packet header