fix: el audio del logo.cpp soles sonava la primera volta
This commit is contained in:
@@ -80,11 +80,9 @@ void Logo::checkInput() {
|
||||
|
||||
// Maneja la reproducción del sonido del logo
|
||||
void Logo::handleSound() {
|
||||
static bool sound_triggered = false;
|
||||
|
||||
if (!sound_triggered && elapsed_time_s_ >= SOUND_TRIGGER_TIME_S) {
|
||||
if (!sound_triggered_ && elapsed_time_s_ >= SOUND_TRIGGER_TIME_S) {
|
||||
Audio::get()->playSound("logo.wav");
|
||||
sound_triggered = true;
|
||||
sound_triggered_ = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user