From 47f563957828c399329ec4573b556cadc3e4cbf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Valor=20Mart=C3=ADnez?= Date: Mon, 3 Oct 2022 17:15:47 +0200 Subject: [PATCH 1/2] Modificado .gitignore --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index c4f9bba..5c56f06 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ .vscode bin -data/config.bin +data/config.txt data/score.bin dll docs From b67f2eb015e89abc5c4c3ff82962dde4b99b90e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Valor=20Mart=C3=ADnez?= Date: Mon, 3 Oct 2022 17:38:01 +0200 Subject: [PATCH 2/2] =?UTF-8?q?Peque=C3=B1os=20arreglos=20en=20printf?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/player.cpp | 4 ++-- source/room.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/source/player.cpp b/source/player.cpp index c94eeb5..3e06218 100644 --- a/source/player.cpp +++ b/source/player.cpp @@ -660,9 +660,9 @@ bool Player::checkKillingTiles() } // Mata al jugador si hay colisión - if (alive) + if (check) { - alive = !check; + alive = false; } return check; diff --git a/source/room.cpp b/source/room.cpp index bd56ebb..e5063c0 100644 --- a/source/room.cpp +++ b/source/room.cpp @@ -218,7 +218,7 @@ bool Room::loadMapFile(std::string file_path) } // Cierra el fichero - printf("Closing file %s\n", filename.c_str()); + printf("Closing file %s\n\n", filename.c_str()); file.close(); } // El fichero no se puede abrir @@ -242,7 +242,7 @@ bool Room::loadMapTileFile(std::string file_path) if (file.good()) { // Procesa el fichero linea a linea - printf("Reading file %s\n\n", filename.c_str()); + printf("Reading file %s\n", filename.c_str()); while (std::getline(file, line)) { // Lee el fichero linea a linea