Corregit bug en el text a l'hora d'intercanviar els mandos. Apareixia el nom del mando que te guardat a la configuració pero no estava connectat

This commit is contained in:
2024-10-03 19:26:32 +02:00
parent fb74733f2c
commit c07fd62037
6 changed files with 33 additions and 29 deletions

View File

@@ -378,7 +378,8 @@ void Title::swapControllers()
for (int i = 0; i < MAX_CONTROLLERS; ++i)
{
const int index = playerControllerIndex[i];
if (options.controller[index].name != "NO NAME")
//if (options.controller[index].name != "NO NAME")
if (options.controller[index].plugged)
{
text[i] = "Jugador " + std::to_string(i + 1) + ": " + options.controller[index].name;
}