fix: amb el audio muted, al acabar la partida el fade per al roido de boles el tornava a deixar activat
This commit is contained in:
@@ -328,8 +328,11 @@ void Game::updateGameStateGameOver()
|
|||||||
|
|
||||||
if (fade_out_->isEnabled())
|
if (fade_out_->isEnabled())
|
||||||
{
|
{
|
||||||
const float vol = static_cast<float>(64 * (100 - fade_out_->getValue())) / 100.0f;
|
if (options.audio.enabled)
|
||||||
JA_SetSoundVolume(to_JA_volume(static_cast<int>(vol)));
|
{
|
||||||
|
const float vol = static_cast<float>(64 * (100 - fade_out_->getValue())) / 100.0f;
|
||||||
|
JA_SetSoundVolume(to_JA_volume(static_cast<int>(vol)));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fade_out_->hasEnded())
|
if (fade_out_->hasEnded())
|
||||||
@@ -344,8 +347,11 @@ void Game::updateGameStateGameOver()
|
|||||||
// La partida ha terminado con la derrota de los jugadores
|
// La partida ha terminado con la derrota de los jugadores
|
||||||
section::name = section::Name::HI_SCORE_TABLE;
|
section::name = section::Name::HI_SCORE_TABLE;
|
||||||
}
|
}
|
||||||
JA_StopChannel(-1);
|
if (options.audio.enabled)
|
||||||
JA_SetSoundVolume(to_JA_volume(options.audio.sound.volume));
|
{
|
||||||
|
JA_StopChannel(-1);
|
||||||
|
JA_SetSoundVolume(to_JA_volume(options.audio.sound.volume));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user