refactor(component): racing control and gate rush share the client's racing control base

LWOBaseRacingControlComponent (an activity component) is the base of the
client's racing control (71) and gate rush control (103); DLU gets the same
BaseRacingControlComponent. Nothing sent changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Aaron Kimbrell
2026-10-01 14:23:38 -05:00
parent 4bfdeec369
commit 0e611bc76c
4 changed files with 24 additions and 8 deletions

View File

@@ -38,7 +38,7 @@
#endif
RacingControlComponent::RacingControlComponent(Entity* parent, const int32_t componentID)
: ActivityComponent(parent, componentID) {
: BaseRacingControlComponent(parent, componentID) {
m_PathName = u"MainPath";
m_NumberOfLaps = 3;
m_RemainingLaps = m_NumberOfLaps;
@@ -63,7 +63,7 @@ RacingControlComponent::RacingControlComponent(Entity* parent, const int32_t com
// After the activity's own loading: the race's activity is the one of this world (42 when none)
void RacingControlComponent::LoadConfigData() {
ActivityComponent::LoadConfigData();
BaseRacingControlComponent::LoadConfigData();
const auto worldID = Game::server->GetZoneID();
m_ActivityID = 42;