From 1068fe904d8b7b42d3a69ba39035a5f5ad0686af Mon Sep 17 00:00:00 2001 From: Aaron Kimbrell Date: Thu, 1 Oct 2026 17:55:58 -0500 Subject: [PATCH] fix(entity): no mission offer on characters and no racing stats, as the client The client gives a character no mission offer component (LOT 1's registry has none; DLU's had no missions) and never makes racing stats (74 is not in its component load order). Same bytes for every LOT. Co-Authored-By: Claude Opus 5.5 --- dGame/Entity.cpp | 10 +--------- dGame/dComponents/RacingStatsComponent.h | 14 -------------- 2 files changed, 1 insertion(+), 23 deletions(-) delete mode 100644 dGame/dComponents/RacingStatsComponent.h diff --git a/dGame/Entity.cpp b/dGame/Entity.cpp index 8d7bf5b4d..143fe0af9 100644 --- a/dGame/Entity.cpp +++ b/dGame/Entity.cpp @@ -86,7 +86,6 @@ #include "eReplicaComponentType.h" #include "eReplicaPacketType.h" #include "MiniGameControlComponent.h" -#include "RacingStatsComponent.h" #include "CollectibleComponent.h" #include "ItemComponent.h" #include "MinifigComponent.h" @@ -556,7 +555,7 @@ void Entity::DoObjectComponentLoad(ObjectLoadState& state) { } case eReplicaComponentType::MISSION_OFFER: { const auto missionOfferComponentID = state.GetComponentID(eReplicaComponentType::MISSION_OFFER, -1); - if (missionOfferComponentID > -1 || m_Character) { + if (missionOfferComponentID > -1) { AddComponent(missionOfferComponentID); } break; @@ -979,13 +978,6 @@ void Entity::DoObjectComponentLoad(ObjectLoadState& state) { } } - /** - * Components DLU has that the client's load order doesn't make - */ - const auto racingStatsID = state.GetComponentID(eReplicaComponentType::RACING_STATS); - if (racingStatsID > 0) { - AddComponent(racingStatsID); - } /** * Added after the walk, as the client does (DoObjectComponentLoad): the ghost of a character (LWOGhostComponent's diff --git a/dGame/dComponents/RacingStatsComponent.h b/dGame/dComponents/RacingStatsComponent.h deleted file mode 100644 index c73a9dfae..000000000 --- a/dGame/dComponents/RacingStatsComponent.h +++ /dev/null @@ -1,14 +0,0 @@ -#ifndef __RACINGSTATSCOMPONENT__H__ -#define __RACINGSTATSCOMPONENT__H__ - -#include "Component.h" -#include "eReplicaComponentType.h" - -class RacingStatsComponent final : public Component { -public: - static constexpr eReplicaComponentType ComponentType = eReplicaComponentType::RACING_STATS; - - RacingStatsComponent(Entity* parent, const int32_t componentID) : Component(parent, componentID) {} -}; - -#endif //!__RACINGSTATSCOMPONENT__H__