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 <noreply@anthropic.com>
This commit is contained in:
Aaron Kimbrell
2026-10-01 17:55:58 -05:00
parent 0fccea55b8
commit 1068fe904d
2 changed files with 1 additions and 23 deletions

View File

@@ -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<MissionOfferComponent>(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<RacingStatsComponent>(racingStatsID);
}
/**
* Added after the walk, as the client does (DoObjectComponentLoad): the ghost of a character (LWOGhostComponent's

View File

@@ -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__