4 merdes fetes en la feina pr avorriment

This commit is contained in:
2025-11-03 14:12:17 +01:00
parent d4030ec1bc
commit 66a580aff6
5 changed files with 87 additions and 152 deletions

View File

@@ -307,7 +307,7 @@ auto Game::changeRoom(const std::string& room_path) -> bool {
// Comprueba si el jugador esta en el borde de la pantalla
void Game::checkPlayerIsOnBorder() {
if (player_->getOnBorder()) {
if (player_->isOnBorder()) {
const std::string ROOM_NAME = room_->getRoom(player_->getBorder());
if (changeRoom(ROOM_NAME)) {
player_->switchBorders();