La tabla de puntuacions ja mostra aquelles aconseguides amb 1CC

This commit is contained in:
2025-02-05 15:15:48 +01:00
parent 7e2021da70
commit 6f594b9a1f
8 changed files with 22 additions and 17 deletions
+5 -5
View File
@@ -14,13 +14,13 @@
// Estructura para las entradas de la tabla de recirds
struct HiScoreEntry
{
std::string name; // Nombre
int score = 0; // Puntuación
bool one_credit_complete = false; // Indica si se ha conseguido 1CC
std::string name; // Nombre
int score; // Puntuación
bool one_credit_complete; // Indica si se ha conseguido 1CC
// Constructor
explicit HiScoreEntry(const std::string &n = "", int s = 0)
: name(n), score(s) {}
explicit HiScoreEntry(const std::string &n = "", int s = 0, bool occ = false)
: name(n.substr(0, 5)), score(s), one_credit_complete(occ) {}
};
// Clase ManageHiScoreTable