Bring back the ability to skip the unlock cutscense, fixes #3069

This commit is contained in:
auria.mg 2017-12-03 18:44:50 -05:00
parent d9937d7b33
commit 1afb62c97d

View File

@ -581,20 +581,20 @@ bool FeatureUnlockedCutScene::onEscapePressed()
void FeatureUnlockedCutScene::continueButtonPressed()
{
//if (m_global_time < GIFT_EXIT_TO)
//{
// // If animation was not over yet, the button is used to skip the animation
// while (m_global_time < GIFT_EXIT_TO)
// {
// // simulate all the steps of the animation until we reach the end
// onUpdate(0.4f);
// World::getWorld()->updateWorld(0.4f);
// }
//}
//else
//{
if (m_global_time < GIFT_EXIT_TO)
{
// If animation was not over yet, the button is used to skip the animation
while (m_global_time < GIFT_EXIT_TO)
{
// simulate all the steps of the animation until we reach the end
onUpdate(0.4f);
World::getWorld()->updateWorld(0.4f);
}
}
else
{
((CutsceneWorld*)World::getWorld())->abortCutscene();
//}
}
} // continueButtonPressed