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 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