Use better naming

- Remove use of Base.  It is implied if you inherit that the class inherited from is a Base.
- Fix compilation errors from said change.
This commit is contained in:
David Markowitz
2023-06-25 22:00:01 -07:00
parent 9121bf41c5
commit ec9278286b
14 changed files with 1179 additions and 1191 deletions

View File

@@ -1,7 +1,7 @@
#include "ActVehicleDeathTrigger.h"
#include "PossessableComponent.h"
#include "GameMessages.h"
#include "RacingControlComponent.h"
#include "VehicleRacingControlComponent.h"
#include "dZoneManager.h"
#include "EntityManager.h"
#include "PossessorComponent.h"
@@ -44,9 +44,7 @@ void ActVehicleDeathTrigger::OnCollisionPhantom(Entity* self, Entity* target) {
auto* zoneController = dZoneManager::Instance()->GetZoneControlObject();
auto* racingControlComponent = zoneController->GetComponent<RacingControlComponent>();
auto* vehicleRacingControlComponent = zoneController->GetComponent<VehicleRacingControlComponent>();
if (racingControlComponent != nullptr) {
racingControlComponent->OnRequestDie(player);
}
if (vehicleRacingControlComponent) vehicleRacingControlComponent->OnRequestDie(player);
}