Skip to content

Commit

Permalink
Merge pull request #6 from OogwayUniverse/quickbuild_fix
Browse files Browse the repository at this point in the history
uncommented and repaired fix
  • Loading branch information
Jettford authored Dec 19, 2021
2 parents 1512364 + 492184b commit 712c4a7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions dGame/dComponents/RebuildComponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,16 @@ void RebuildComponent::Update(float deltaTime) {
m_Activator = GetActivator();

// Serialize the quickbuild every so often, fixes the odd bug where the quickbuild is not buildable
/*if (m_SoftTimer > 0.0f) {
if (m_SoftTimer > 0.0f) {
m_SoftTimer -= deltaTime;
}
else {
m_SoftTimer = 5.0f;
if (m_State != REBUILD_BUILDING) {
m_SoftTimer = 5.0f;

EntityManager::Instance()->SerializeEntity(m_Parent);
}*/
EntityManager::Instance()->SerializeEntity(m_Parent);
}
}

switch (m_State) {
case REBUILD_OPEN: {
Expand Down

0 comments on commit 712c4a7

Please sign in to comment.