fixed game logic

This commit is contained in:
2025-03-23 21:41:37 +01:00
parent 507bc9cc86
commit 38008e00bc
7 changed files with 90 additions and 59 deletions

View File

@@ -38,7 +38,7 @@ void GameParameters::clearLines(int lineNumber) {
// level increments every 10 lines, stats only changes on level up
if (previousLines / 10 < this->clearedLines / 10) {
this->level = this->clearedLines / 10;
this->level += (this->clearedLines / 10 - previousLines / 10);
this->updateStats();
}
break;