mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-15 12:48:20 +00:00
lol lmao
This commit is contained in:
parent
4fbd536e74
commit
1d4d1414e9
@ -708,7 +708,6 @@ void Entity::Initialize() {
|
|||||||
MovingPlatformComponent* plat = new MovingPlatformComponent(this, pathName);
|
MovingPlatformComponent* plat = new MovingPlatformComponent(this, pathName);
|
||||||
m_Components.insert(std::make_pair(eReplicaComponentType::MOVING_PLATFORM, plat));
|
m_Components.insert(std::make_pair(eReplicaComponentType::MOVING_PLATFORM, plat));
|
||||||
} else if (path->pathType == PathType::Movement) {
|
} else if (path->pathType == PathType::Movement) {
|
||||||
Game::logger->Log("Entity", "is movement %i", GetLOT());
|
|
||||||
auto movementAIcomp = GetComponent<MovementAIComponent>();
|
auto movementAIcomp = GetComponent<MovementAIComponent>();
|
||||||
if (!movementAIcomp) {
|
if (!movementAIcomp) {
|
||||||
movementAIcomp = new MovementAIComponent(this, {});
|
movementAIcomp = new MovementAIComponent(this, {});
|
||||||
|
@ -310,11 +310,9 @@ void SGCannon::OnActivityTimerDone(Entity* self, const std::string& name) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Save the enemy and tell it to start pathing
|
// Save the enemy and tell it to start pathing
|
||||||
if (enemy != nullptr) {
|
|
||||||
const_cast<std::vector<LWOOBJID>&>(self->GetVar<std::vector<LWOOBJID>>(SpawnedObjects)).push_back(enemy->GetObjectID());
|
const_cast<std::vector<LWOOBJID>&>(self->GetVar<std::vector<LWOOBJID>>(SpawnedObjects)).push_back(enemy->GetObjectID());
|
||||||
GameMessages::SendPlatformResync(enemy, UNASSIGNED_SYSTEM_ADDRESS);
|
GameMessages::SendPlatformResync(enemy, UNASSIGNED_SYSTEM_ADDRESS);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
} else if (name == EndGameBufferTimer) {
|
} else if (name == EndGameBufferTimer) {
|
||||||
RecordPlayerScore(self);
|
RecordPlayerScore(self);
|
||||||
StopGame(self, false);
|
StopGame(self, false);
|
||||||
|
Loading…
Reference in New Issue
Block a user