mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-01-21 20:27:02 +00:00
reduce traffic greatly
This commit is contained in:
parent
c968dc9028
commit
b738504812
@ -125,11 +125,10 @@ void QuickBuildComponent::Update(float deltaTime) {
|
|||||||
|
|
||||||
if (isSmashGroup) {
|
if (isSmashGroup) {
|
||||||
ModifyIncompleteTimer(deltaTime);
|
ModifyIncompleteTimer(deltaTime);
|
||||||
Game::entityManager->SerializeEntity(m_Parent);
|
|
||||||
|
|
||||||
// For reset times < 0 this has to be handled manually
|
// For reset times < 0 this has to be handled manually
|
||||||
if (m_TimeBeforeSmash > 0) {
|
if (m_TimeBeforeSmash > 0) {
|
||||||
if (m_TimerIncomplete >= m_TimeBeforeSmash - 4.0f) {
|
if (m_TimerIncomplete >= m_TimeBeforeSmash - 4.0f && !m_ShowResetEffect) {
|
||||||
SetShowResetEffect(true);
|
SetShowResetEffect(true);
|
||||||
|
|
||||||
Game::entityManager->SerializeEntity(m_Parent);
|
Game::entityManager->SerializeEntity(m_Parent);
|
||||||
@ -149,11 +148,10 @@ void QuickBuildComponent::Update(float deltaTime) {
|
|||||||
}
|
}
|
||||||
case eQuickBuildState::COMPLETED: {
|
case eQuickBuildState::COMPLETED: {
|
||||||
ModifyTimer(deltaTime);
|
ModifyTimer(deltaTime);
|
||||||
Game::entityManager->SerializeEntity(m_Parent);
|
|
||||||
|
|
||||||
// For reset times < 0 this has to be handled manually
|
// For reset times < 0 this has to be handled manually
|
||||||
if (m_ResetTime > 0) {
|
if (m_ResetTime > 0) {
|
||||||
if (m_Timer >= m_ResetTime - 4.0f) {
|
if (m_Timer >= m_ResetTime - 4.0f && !m_ShowResetEffect) {
|
||||||
SetShowResetEffect(true);
|
SetShowResetEffect(true);
|
||||||
|
|
||||||
Game::entityManager->SerializeEntity(m_Parent);
|
Game::entityManager->SerializeEntity(m_Parent);
|
||||||
@ -210,11 +208,10 @@ void QuickBuildComponent::Update(float deltaTime) {
|
|||||||
}
|
}
|
||||||
case eQuickBuildState::INCOMPLETE: {
|
case eQuickBuildState::INCOMPLETE: {
|
||||||
ModifyIncompleteTimer(deltaTime);
|
ModifyIncompleteTimer(deltaTime);
|
||||||
Game::entityManager->SerializeEntity(m_Parent);
|
|
||||||
|
|
||||||
// For reset times < 0 this has to be handled manually
|
// For reset times < 0 this has to be handled manually
|
||||||
if (m_TimeBeforeSmash > 0) {
|
if (m_TimeBeforeSmash > 0) {
|
||||||
if (m_TimerIncomplete >= m_TimeBeforeSmash - 4.0f) {
|
if (m_TimerIncomplete >= m_TimeBeforeSmash - 4.0f && !m_ShowResetEffect) {
|
||||||
SetShowResetEffect(true);
|
SetShowResetEffect(true);
|
||||||
|
|
||||||
Game::entityManager->SerializeEntity(m_Parent);
|
Game::entityManager->SerializeEntity(m_Parent);
|
||||||
|
Loading…
Reference in New Issue
Block a user