style: eliminats uns fprintf

This commit is contained in:
2025-03-16 13:24:33 +01:00
parent b3215bf381
commit bfb334bef0
4 changed files with 40 additions and 27 deletions

View File

@@ -144,7 +144,6 @@ void Credits::checkInput()
{
// Comprueba si se ha pulsado cualquier botón (de los usados para jugar)
if (Input::get()->checkAnyButtonPressed(INPUT_ALLOW_REPEAT))
{
if (mini_logo_on_position_)
{
@@ -163,6 +162,21 @@ void Credits::checkInput()
want_to_pass_ = false;
}
// Comprueba si se pulsa algun boton de disparo para acabar con el minilogo y empezar el fade
if (mini_logo_on_position_)
{
for (int i = 0; i < Input::get()->getNumControllers(); ++i)
{
// Salir
if (Input::get()->checkInput(InputType::FIRE_CENTER, INPUT_DO_NOT_ALLOW_REPEAT, InputDeviceToUse::CONTROLLER, i) &&
Input::get()->checkInput(InputType::FIRE_LEFT, INPUT_DO_NOT_ALLOW_REPEAT, InputDeviceToUse::CONTROLLER, i) &&
Input::get()->checkInput(InputType::FIRE_RIGHT, INPUT_DO_NOT_ALLOW_REPEAT, InputDeviceToUse::CONTROLLER, i))
{
fading_ = true;
}
}
}
// Comprueba los inputs que se pueden introducir en cualquier sección del juego
globalInputs::check();
}