mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-11-26 03:08:26 +00:00
auroooga
This commit is contained in:
@@ -734,7 +734,7 @@ void Entity::Initialize() {
|
||||
if (path->pathType == PathType::MovingPlatform) {
|
||||
AddComponent<MovingPlatformComponent>(pathName);
|
||||
} else if (path->pathType == PathType::Movement) {
|
||||
AddComponent<MovementAIComponent>(MovementAIInfo())->SetupPath(pathName);
|
||||
AddComponent<MovementAIComponent>(MovementAIInfo{})->SetupPath(pathName);
|
||||
}
|
||||
} else {
|
||||
// else we still need to setup moving platform if it has a moving platform comp but no path
|
||||
@@ -2192,4 +2192,4 @@ void Entity::SetScale(const float scale) {
|
||||
if (scale == m_Scale) return;
|
||||
m_Scale = scale;
|
||||
Game::entityManager->SerializeEntity(this);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user