Skip to content

Commit

Permalink
Vault stays open when loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
hexagonrecursion committed Aug 23, 2024
1 parent aad5918 commit 0e46c87
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions colobot-base/src/object/auto/autovault.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,16 @@ bool CAutoVault::Read(CLevelParserLine* line)

m_lastParticle = 0.0f;

if (m_phase == ASAP_FINISH)
{
m_object->DeleteAllCrashSpheres();
m_object->SetCameraCollisionSphere(Math::Sphere(glm::vec3(0.0f, 0.0f, 0.0f), 0.0f));

float finalAngle = 120.0f*Math::PI/180.0f;
m_object->SetPartRotationZ(1, finalAngle);
m_object->SetPartRotationZ(2, -finalAngle);
}

return true;
}

Expand Down

0 comments on commit 0e46c87

Please sign in to comment.