afegida opció per habilitar o deshabilitar el audio desde el teclat. De moment soles desde el joc. En poder ho integraré en jail_audio
This commit is contained in:
@@ -2137,6 +2137,18 @@ void Game::checkInput()
|
||||
return;
|
||||
}
|
||||
|
||||
else if (input->checkInput(input_mute, DO_NOT_ALLOW_REPEAT))
|
||||
{
|
||||
const bool value = !options->audio.music.enabled;
|
||||
options->audio.music.enabled = value;
|
||||
options->audio.sound.enabled = value;
|
||||
JA_EnableMusic(value);
|
||||
JA_EnableSound(value);
|
||||
const std::string text = value ? "on" : "off";
|
||||
screen->showNotification("Audio " + text);
|
||||
return;
|
||||
}
|
||||
|
||||
else if (input->checkInput(input_pause, DO_NOT_ALLOW_REPEAT))
|
||||
{
|
||||
pause(!paused);
|
||||
|
||||
Reference in New Issue
Block a user