mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-11-16 16:55:27 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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__
|
||||
Reference in New Issue
Block a user