config: opció gameplay.pause_countdown per saltar el compte enrere de pausa

This commit is contained in:
2026-05-17 17:24:06 +02:00
parent 6b0337b750
commit 415ce17f3b
4 changed files with 29 additions and 1 deletions
+6 -1
View File
@@ -2812,6 +2812,9 @@ void Game::updatePauseMenuUI() {
switch (pause_menu_->getItemSelected()) {
case 1:
leaving_pause_menu_ = true;
if (!Options::gameplay.pause_countdown) {
pause_counter_ = 0; // salta el compte enrere de 3 segons
}
break;
case 2:
@@ -2862,7 +2865,9 @@ void Game::renderPausedGame() {
}
if (leaving_pause_menu_) {
text_nokia_big2_->writeCentered(GAMECANVAS_CENTER_X, PLAY_AREA_FIRST_QUARTER_Y, std::to_string((pause_counter_ / 30) + 1));
if (pause_counter_ > 0) {
text_nokia_big2_->writeCentered(GAMECANVAS_CENTER_X, PLAY_AREA_FIRST_QUARTER_Y, std::to_string((pause_counter_ / 30) + 1));
}
} else {
pause_menu_->render();
}