Change best times to Local leaderboard
This commit is contained in:
@@ -482,6 +482,9 @@ void addLocalTime(String uid, String name, unsigned long timeMs) {
|
||||
|
||||
localTimes.push_back(newTime);
|
||||
|
||||
// Speichere das Leaderboard automatisch
|
||||
saveBestTimes();
|
||||
|
||||
Serial.printf("Lokale Zeit hinzugefügt: %s (%s) - %.2fs\n", name.c_str(),
|
||||
uid.c_str(), timeMs / 1000.0);
|
||||
}
|
||||
@@ -489,5 +492,6 @@ void addLocalTime(String uid, String name, unsigned long timeMs) {
|
||||
// Leert das lokale Leaderboard
|
||||
void clearLocalLeaderboard() {
|
||||
localTimes.clear();
|
||||
saveBestTimes(); // Speichere das geleerte Leaderboard
|
||||
Serial.println("Lokales Leaderboard geleert");
|
||||
}
|
||||
Reference in New Issue
Block a user