From f9a6478a4b278dd71debd795cff1b6fbd57a25f1 Mon Sep 17 00:00:00 2001 From: Sergio Valor Date: Mon, 8 Jul 2024 12:39:31 +0200 Subject: [PATCH] fix: el contador de demo estaba activo durante el juego y lo finalizaba --- source/game.cpp | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/source/game.cpp b/source/game.cpp index 03a42f2..61803cd 100644 --- a/source/game.cpp +++ b/source/game.cpp @@ -2532,14 +2532,17 @@ void Game::update() counter++; // Incrementa el contador de la demo - if (demo.counter < TOTAL_DEMO_DATA) + if (demo.enabled) { - demo.counter++; - } - else - { - section->name = SECTION_PROG_HI_SCORE_TABLE; - return; + if (demo.counter < TOTAL_DEMO_DATA) + { + demo.counter++; + } + else + { + section->name = SECTION_PROG_HI_SCORE_TABLE; + return; + } } #ifdef RECORDING