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__