al fer restart, si estava sonant la musica del attract mode, la musica no parava al anar al logo
This commit is contained in:
@@ -641,6 +641,7 @@ static const std::vector<ConsoleCommand> COMMANDS = {
|
|||||||
// RESTART — Reiniciar desde el principio (equivale a SCENE LOGO)
|
// RESTART — Reiniciar desde el principio (equivale a SCENE LOGO)
|
||||||
{.keyword = "RESTART", .execute = [](const std::vector<std::string>&) -> std::string {
|
{.keyword = "RESTART", .execute = [](const std::vector<std::string>&) -> std::string {
|
||||||
SceneManager::current = SceneManager::Scene::LOGO;
|
SceneManager::current = SceneManager::Scene::LOGO;
|
||||||
|
Audio::get()->stopMusic();
|
||||||
return "Restarting...";
|
return "Restarting...";
|
||||||
},
|
},
|
||||||
.instant = true},
|
.instant = true},
|
||||||
|
|||||||
Reference in New Issue
Block a user