This commit is contained in:
2026-05-02 21:08:47 +02:00
parent e4389f035d
commit fcc598adb1
11 changed files with 35 additions and 32 deletions

View File

@@ -15,7 +15,7 @@ namespace {
void writeFinalScoreFile(int score) {
std::ofstream file("score.txt", std::ios::trunc);
if (!file.is_open()) {
WARN("Failed to open score.txt for writing");
WARN("Neuspešno odpiranje score.txt za pisanje");
return;
}
@@ -314,7 +314,7 @@ namespace Game::AGame {
} else if (!GameManager::getSharedData<bool>("gameWon")) {
writeFinalScoreFile(GameManager::getSharedData<int>("gameScore"));
GameManager::setSharedData("gameWon", true);
LOG("All levels cleared");
LOG("Vsi nivoji so zaključeni");
}
}
}