few more pointer specifiers

This commit is contained in:
David Markowitz 2023-06-12 04:04:45 -07:00
parent 3f3810519d
commit f9ac0a9dec
2 changed files with 3 additions and 3 deletions

View File

@ -608,12 +608,12 @@ void Entity::Unsubscribe(const LWOOBJID& scriptObjId, const std::string& notific
}
void Entity::SetProximityRadius(const float proxRadius, const std::string& name) {
auto proximityMonitorComponent = AddComponent<ProximityMonitorComponent>();
auto* proximityMonitorComponent = AddComponent<ProximityMonitorComponent>();
if (proximityMonitorComponent) proximityMonitorComponent->SetProximityRadius(proxRadius, name);
}
void Entity::SetProximityRadius(dpEntity* entity, const std::string& name) {
auto proximityMonitorComponent = AddComponent<ProximityMonitorComponent>();
auto* proximityMonitorComponent = AddComponent<ProximityMonitorComponent>();
if (proximityMonitorComponent) proximityMonitorComponent->SetProximityRadius(entity, name);
}

View File

@ -287,7 +287,7 @@ void SGCannon::OnActivityTimerDone(Entity* self, const std::string& name) {
auto* enemy = EntityManager::Instance()->CreateEntity(info, nullptr, self);
EntityManager::Instance()->ConstructEntity(enemy);
auto movementAiComponent = enemy->AddComponent<MovementAIComponent>(0U);
auto* movementAiComponent = enemy->AddComponent<MovementAIComponent>(0U);
movementAiComponent->SetSpeed(toSpawn.initialSpeed);
movementAiComponent->SetCurrentSpeed(toSpawn.initialSpeed);