Ya no cambia de borde el jugador si tampoco puede cambiar de habitación
This commit is contained in:
@@ -198,8 +198,10 @@ void Game::checkPlayerOnBorder()
|
||||
{
|
||||
if (mPlayer->getOnBorder())
|
||||
{
|
||||
changeRoom(mRoom->getRoom(mPlayer->getBorder()));
|
||||
mPlayer->switchBorders();
|
||||
if (changeRoom(mRoom->getRoom(mPlayer->getBorder())))
|
||||
{
|
||||
mPlayer->switchBorders();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user