Skip to content

Commit

Permalink
Merge pull request colobot#1750 from hexagonrecursion/open-sesame
Browse files Browse the repository at this point in the history
Vault stays open when loaded
  • Loading branch information
tomangelo2 authored Nov 26, 2024
2 parents 45fe5cc + 0e46c87 commit e0cd2da
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 e0cd2da

Please sign in to comment.