mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-12-25 15:03:34 +00:00
few more pointer specifiers
This commit is contained in:
parent
3f3810519d
commit
f9ac0a9dec
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user